Set Skeletal mesh Issue

Hi,

Skeletal mesh not visible during runtime after hotswapping with this code:

It works intermittently. Some skeletal meshes show up whiles most don’t. I notice they become visible when I have manually set them in the Character BP. Is there a way to force update or make them load correctly?

thanks

Hello,

Mesh is not visible because New Mesh is “none”. Soft object references need to be loaded into memory before they can be used.

You might have previously opened or placed some assets in the world, which loads then into memory, making the resolve node work and return the right mesh

Something like this should work. I think the “proper” way is the one with cast node, but the top one seems to work too. :slight_smile:

Hope that helps!

Thanks!!

It works!! Yeah I didn’t realize that soft refs need to be loaded into memory first.

1 Like

(post deleted by author)