‼️Mesh Sync Setup

The example used in the demo that comes with this asset

Step 1 - Add the MeshSyncComponent to your character

This is fairly straightforward, add the MeshSync component to your character.

Step 2 - Setup the data assets that contain the meshes for your character

Create a data asset of BP_MSMesh, this will contain the information of a specific body part.

Pick BP_MSMesh and click Select, name it however you like

Click the + icon to add an entry, this is an array so you can add as many as you like, Mesh Sync will then randomly pick one from this list, this allows for complex setups.

Now we can set it up, asset name is added as a tag on each skeletal mesh so you can identify each one if using Get Components by Tag node. Select a skeletal mesh to use and it's essentially good to go. The other options are not relevant for now. Repeat this for as many as you like.

Create another Data Asset for the body and repeat the steps above

Do this for every body part that you want to add.

Step 3 - Create a Data Asset that contains the other data assets we made previously

Select BP_MSType, In this data asset we'll add all the ones we previously made, therefore this data asset contains all the body parts. In this example I have named it "Example_Type_01"

Step 4 - Setup the MeshSyncComponent in your character

Now it's time to add the previously created data asset to the component in your character.

The "Actor Type" is the data asset that contains our list of body parts, the animation instance is what we normally select in the Mesh, this will apply to the Master Mesh. Make sure to enable Randomize Parts if you have multiple meshes in one body part, otherwise it will always select the first entry in the array.

You should end up with a similar structure like this, in this case there are a total of 4 body parts which are defined in the "Character_Type_01"

If there is any confusion, feel free to ask a question. Or take a look at the Blueprints\Characters\Instances folder, this contains the setup as seen in the Overview Map and Demo. Code inside the component is documented as well to explain it's functionality.

Last updated