Skeletal Mesh Component Replication

Hey all, I’m a bit confused on this so hopefully someone can clear this up for me.

I have a SkeletalMeshComponent attached to my player character which I’m hoping to use for an armor mesh. I can set the skeletal mesh on the server, but it doesn’t replicate back to the clients despite the “Component Replicates” box being checked.

Everything online says to use a multicast event to set it for other players, but to my knowledge this seems like a poor solution for permanent changes because anyone outside of net relevancy will not see the mesh.

It looks like I need something like RepNotify, but the skeletal mesh component doesn’t seem to have an option for that.

Does anyone have any advice/example links they can share?

Thanks in advance!

Make a mesh property and set it to “RepNotify”, this will give you an OnRep_ function that gets called whenever a client receives a new value, so you can update the component there.

2 Likes

This worked! Thanks so much!

Awesome! Could you accept the answer for future visitors?

You rock! Thank you :slight_smile: