Swap an enemy's model for your own
Any skeletal mesh with its own skeleton and animations can dress an enemy. Nothing needs the UE mannequin or our rig, and no code is involved. Six steps, all in the Content Browser and the Details panel.
Before you start: the scale check (2 minutes, saves an hour)
A creature that plays squashed, or whose bones are a tiny cluster at its feet, was exported with the mesh and the skeleton at different scales (common with FBX-to-glTF converters).
- Import your
.fbxor.glb(drag it into the Content Browser, accept the defaults). You get a Skeletal Mesh, a Skeleton and one Animation Sequence per clip. - Open the Skeletal Mesh. In the viewport open Show > Bones and pick All Hierarchy (older engine versions: Character > Bones).
- The bones must sit inside the body, from the feet to the head. If they are a small cluster, or much larger than the body, stop. Fix it in your 3D tool (apply scale, re-export), not in Unreal.
- Open one animation clip and press Play in its preview: the creature must keep its shape.
The six steps
- Import. Done above.
- Duplicate a theme. Duplicate the theme you play with (Content Browser > Proving Grounds: 3D Platformer Mechanics > Themes, for the demo courses
DA_Lab_Course) into your own folder. Keep the original as a reset point. -
Add a look. Open the duplicate, Enemies > Enemy Looks, press + and type a name for the key, for example
MyMonster. -
Fill in the look (Details): - Mesh: your Skeletal Mesh. - Scale: the size of your mesh in centimetres decides it. The enemy's hit box is built from the mesh bounds times Scale times Normal Size. Example: a 357 cm tall creature at Scale 0.25 and Normal Size 1.5 became a 134 cm enemy with its feet on the floor. - Mesh Yaw: 0 if the creature's front is its +X, -90 if its front is +Y (what glTF imports usually give). With the right value the creature faces the direction it walks. - Normal Size: how big it plays. Aim for a top between 120 and 190 cm so a full jump lands on it. - Clips: add one entry per state:
Idle,Move,Attack(shooters),Windup(chargers),DeathBounce(stomped),DeathSpin(spun or thrown). Other keys:DeathFlatten,Turn,Fuse,Pickup,Walk,ShieldForward,ShieldUp,Hidden,HideIn,Appear,Falling,Landed. A missing key falls back (WinduptoIdle,DeathFlattentoDeathBounce,LandedtoFalling). - Muzzle Socket / Prop / Shot Mesh (shooters only): a bone name of your skeleton, or a socket you add in the Skeletal Mesh editor. The shot leaves from it. -
Pick the theme. Select it on the level's BP_Control > 3 Theme.
- Use the look. Select an enemy in the level and type your key into Look Name (None = the look of its kind).
Restart Play after changing a theme.
Check it in Play
Walk up to the enemy and check: it faces its walking direction; it plays Idle and Move; it dies on a stomp and when spun (the death clip plays to its last frame); it hurts you on contact; it comes back after your respawn; a shooter's shot leaves the muzzle bone.
If the creature faces sideways change Mesh Yaw by 90. If it is too big or too small change Normal Size first, Scale second. If it sinks into or floats above the floor, check the skeleton-scale test above.