# VRM in Unreal Engine 5
[VRM4U](https://github.com/ruyo/VRM4U)

Click to download the version for UE5

extract and drag the extracted plugins folder to your project folder under *Project Name -> Plugins*


Ensure you don't have the project actively open
Install plugin by clicking *Edit -> Plugins*

Restart Unreal after enabling plugin and import model

Clean up imported assets by putting materials and textures into their own folder

Create Animation -> IK Rig and select your VRM skeletal mesh - label SkeletonTarget. Create another IK Rig with the SK_Mannequin (UE4) - label SkeletonSource.

Open SkeletonSource. Right Click Pelvis and set as Retarget Rout. Add 6 new chains. Label accordingly.


Do the same for the SkeletonTarget.

Create IK Retargeter using SkeletonSource as your source and select your target IK as SkeletonTarget. Edit you base pose to match the UE4 Mannequinn T-Pose. Play animation.


## ALS + VRM
Install Advanced Locomotion System from Epic Marketplace

Add Third Person content pack

Replace ALS blueprint Body Mesh with SKM_Manny

Hide Character Mesh in game

Use ALS_Anim_BP on your Character Mesh

Create Animation Blueprint for SK_Manny under Third Person Blueprints. Add a *Retarget Pose from Mesh* node and select *RTG_UE4Manny_UE5Manny*

Add another skeletal mesh to your ALS Blueprint and change skeletal mesh to *SKM_Manny*. Use the Animation Blueprint you just created. Remove the initial body mesh (but don't delete) and hide the CharacterMesh in game.

You now have a working retargeted model.

Ensure you've extracted your VRM4U plugin to the project directory. Enable VRM4U plugin. Restart Unreal. Import your VRM file. Open the IK Mannequin for your VRM and IK_UE4_Mannequin.
Create an IK Retargeter for using the IK_UE4_Mannequin and edit your pose to match the UE4 Mannequin.

Test whether it worked using the animation in the asset browser

Create another Animation Blueprint using your VRM skeleton and the IK Retargeter you just created. Go back to your ALS_AnimMann_Character_BP and change the skeletal mesh to your VRM skeletal mesh and change the Animation Blueprint to what you just created.

Ensure you update the skeletal mesh to your mannequinn and new animation blueprint. Double check that this is set correctly in the scene view as well.