Replacing mesh in runtime

Hello. I have simple blueprint, which has static mesh component and collision box. How do I change static mesh for static mesh component during run time? I can do that by setting visibility on component, but that also means I will want to add not one but many static mesh components to be able add/change meshes, which will make a lot of difficulties later, when I will want to add more than few mesh options. Any ideas?

Hi,
There is a “SetStaticMesh” node, that should do the trick.
SetMesh.png

I’ve already tried that, but mesh won’t change when I try to do so during gameplay

UPD: Just tried again and it seems to be working. Looks like I’ve messed with constructor script a little. Thanks

1 Like