How to properly attach a new component to an actor from BluePrint?

I create a Rect Light component from an actor blueprint like so:

However, even if the light is visible in the scene on play, the component does not appear in the actor´s component hierarchy on the “details” panel in the editor while on play, and bafflingly the lights disappear if the actor transform changes during play.

I´ve only found a similar post ( Creating Scene components in ActorComponent, but doesn’t attach to Owner? - Programming & Scripting / Blueprint - Epic Developer Community Forums) but it has no answers.

Are you doing this in the Event Graph or Construction script?

  • how is the actor moving?
  • what is the component hierarchy?
  • what transform are you piping in?

If I:

I get:

You can see the attached components in the Outliner if you Unhide them first.

Thank you, I was not aware of the components being hidden.

The problem of the components dissappearing was due to me manually changing the values of the transform in the editor. Apparently that does not work like I´m used to from other engines, but changing the value of a parent object or moving the object otherwise seems to work just fine. Thanks a lot!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.