Actor BP - how can I create a mesh from it's name (string)?

Hi,

So far I use a switch case but I thought I could use Set Static Mesh Path

but it does not appear (see image)

Is there a way to create a static mesh from its name ?

thanks for your help

Try GetAssetRegistry->GetAssetByObjectPath->Cast To Static Mesh.
You can get the object path by right clicking the asset->“Copy Reference”.

1 Like

is not available


Use “Get Asset”.

1 Like

YES !!!
thank you so much !!

1 Like

This thread was helpful, but I wasn’t able to get things working in 5.6, here is how I set it up. in 5.6

I’m not sure why /game/path/assetname.assetname works. Why the .assetname?