Marrow Open Marrow

Guides

How to import a rigged GLB with animations into Unreal Engine 5

By bxzex · · Updated

Unreal Engine 5 imports glTF and GLB files directly. A rigged .glb from Marrow comes in as a skeletal mesh, a skeleton and one animation sequence per take.

How to import a rigged GLB with animations into Unreal Engine 5: a character rigged and animated in Marrow

Import

  1. Unzip your Marrow download and drag the .glb into the Content Browser.
  2. In the import dialog, check that the mesh is imported as a Skeletal Mesh and that Import Animations is on.
  3. Press Import. You get the skeletal mesh, its skeleton, a physics asset, materials, textures and an animation sequence for each animation, named after it.

glTF is in metres and Unreal works in centimetres; the importer converts it. Check the character against the default mannequin, and adjust the import scale if your character came out the wrong size.

Play an animation

Retarget to another character

To play these animations on a character with a different skeleton, such as the UE5 mannequin:

  1. Right-click the animation sequences, choose Retarget Animations.
  2. Pick the source (your Marrow character) and the target mesh. Unreal builds an IK Retargeter for you.
  3. Check the preview, then export the retargeted sequences.

Marrow's skeleton uses plain humanoid names (Hips, Spine, Chest, LeftUpperArm, LeftLowerArm, LeftUpperLeg and so on), so the automatic chain mapping usually needs no fixes.

If the import fails

Older versions of Unreal handle glTF animation less well. Convert the .glb to FBX in Blender (see the Blender guide) and import the FBX instead.

Idle, walk and run in a blend space

  1. Right-click in the Content Browser, choose Animation, Blend Space 1D and pick your character’s skeleton.
  2. Name the horizontal axis Speed and set its range from 0 to 500. Unreal measures speed in centimetres per second.
  3. Drop the idle at 0, the walk near 180 and the run near 450. Use in-place versions of both.
  4. In an Animation Blueprint, read the pawn’s velocity, take its length and feed it to the blend space.

If the feet slide, move the sample points left or right until the stride matches the ground speed.

Attach a weapon

Open the skeleton, right-click the RightHand bone and choose Add Socket. Attach a static mesh to that socket from your character blueprint. Adjust the socket’s position and rotation once, and every sword animation holds it the same way.

Common problems

Questions

Can I use the UE5 mannequin’s animations on my Marrow character?

Yes. Retarget in the other direction, with the mannequin as the source and your character as the target.

Do I need a plugin?

No. glTF import comes with Unreal Engine 5 through the Interchange importer. If dragging a .glb in does nothing, check that the Interchange plugins are enabled.

Open Marrow