Announcement

Collapse
No announcement yet.

How to add component to existing actor in level with Python/Blueprint?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • replied
    Unfortunately a lot of the logic needed to correctly add an instanced component to an actor (both in a level and in a BP) for the editor is currently tied to the UI flow itself.

    We have an open issue (UE-64131) to untangle that logic so it can be shared by the UI and scripting, however I can't say at this point when that will happen.

    If you're curious about investigating more yourself, then SSCSEditor is the class that handles the UI. In this case a subset of the code dealing with the EComponentEditorMode::ActorInstance path of SSCSEditor::AddNewComponent will likely be required.

    Leave a comment:


  • How to add component to existing actor in level with Python/Blueprint?

    In the level editor in the Details panel there is a button "Add Component". And you can add any component to an existing actor.

    But how can you add a component (StaticMeshComponent) to actor with a Python or Blueprint Script or maybe c++?

    Cant find anything in references. It looks like it should be implemented.
Working...
X