Download

Construction Script logic for Components

Hi there!

Is there any way to do something similar to a Construction Script, just for Actor or Scene Components?

Background:
I am trying to make a component that’s supposed to hold a relative location and a radius. To make it easier to design, I wanted to make the component a child of Scene Component and to spawn a sphere component at the location with said radius that is only for editor time visualization purposes and supposed to help me place the location and set the radius.

However, without a construction script I cannot spawn the sphere for it to be visible in the editor. Only in a Begin Play. I could do the visualization stuff inside a function that I can then call from the construction script of the parent actor, but I actually want to leave the actor completely untouched.

Or is there any other way to do such in-editor visualizations?

Thanks and cheers!