How to add triggerbox to actor at runtime?

As title says, don’t have idea how to this. I have trigger box bp and adding them to static mesh at runtime to root component as component. This work is editor, but not in runtime. Any ideas?

I’m not aware of a way to dynamically add a collision/trigger box at run time. But what you can do is create it in the editor, but set it to no collision.

Then when you would be trying to create it, you can instead just set the collision mode to whatever you need it to do, with either;

“Set Collision By Profile Name”
“Set Collision Response To Channel”

So actually trigger box was added to mesh but I have to change in trigger box blueprint ‘‘on component overlap (collision component)’’ from ‘‘get parent actor’’ to ‘‘get attach parent’’ to destroy it.