Skip to main content

Runtime Retarget

Warning

To use this example you will need to import the Third Person Template from Epic: Untitled-1.png Restart the editor after you import it to apply the changes.

In this example we will import an avatar and retarget it at runtime to the UE5 Mannequinn.

To use it, just select BP_Union_RuntimeRetarget as your default pawn in your Game Mode.

Untitled

When you press play you should see the avatar loading in a few seconds

Untitled

Now, you may want to change the Avatar that it’s being loaded or any other behaviour. To do this let’s jump into the BP_Union_RuntimeRetarget blueprint.

Untitled

As you can see, it is almost the same as the UE5 Third Person character. The only two new things are the Union Avatars Component and a new Skeletal Mesh child of the original Mannequin. The new skeletal mesh is retargeted using a Retarget Pose From Mesh node in its Animation Blueprint.

In Begin Play we are setting our new skeletal mesh as the target of avatar component.

Untitled

To change the avatar URL, change it in the Union Avatars Component

Untitled

And that’s all, now you can play with your custom avatar!

Untitled