I can't see static mesh component in editor when is added in runtime.

Hi All!

I’m trying to “weld” couple actors into one when player press key. I achive that by adding static mesh component to one of actors (pallet) and destory others (box). It worked but durring testing i need to inspect new static mesh components but they not appearing anywhere.

Here how i add mesh

and here where i expect to meshes apear


Is there any way to inspect new created components during runtime?

Hey there
Components added on runtime don’t appear on the Details pannel because they’re not part of the actor’s class hierarchy.

Alternatively you can try attaching those SM instead of adding a component.
If the items you add are always the same you can have them in your BP and just enable them when they should be added.

* Also just a tip in case you don’t know: When you use Add Static Mesh Component , you don’t need to set the Static Mesh in a separate node. If you click the node you can select the mesh on it’s details panel on the right. Same for other Add xxxx Component cases.

1 Like

This is absolutely perfect solution for my problem. I couldn’t believe that there was so good solution under my nose.

THANKS A MILLION

1 Like