Using the Editor Utility Widget to add components to objects in UE does not appear to function as expected. I reproduced this 8/8 times in UE 5.1, 5.0, and 4.27, confirming that this is not a regression. I was also able to reproduce the issue on Linux and Windows (I have not tested on Mac).

Steps to Reproduce
  1. Open/Create a project (Blank BP with Starter Content works for reproduction)
  2. Create a new Empty Level in the project
  3. Quick add an Actor object to the level
  4. Right click in the Content Browser and select Editor Utilities > Editor Utility Widget
  5. Open the newly created Editor Utility Widget and add a Button to it
  6. In the Details panel for the button, scroll down to Events and Add an On Clicked Event
  7. Set up the Button's On Clicked Event:
    1. Connect the On Clicked node to a Get Selected Actors node
    2. Connect the "Return Value' on the Get Selected Actors node to a Get (a copy) Array node
    3. Connect the Get Selected Actors output and Get array output to a Add Component by Class node (see screenshot for further clarity)
    4. Set the Class for the Add Component by Class node to Box Collision
  8. Compile and Save the Editor Utility Widget
  9. Select the Actor in the viewpoint, then run the Editor Utility Widget
  10. Press the button in the running Editor Utility Widget window

Result: A collision box is added to the actor in the viewport, and there are no changes to the actor in the details panel.

Expected: A collision box is added to the actor in the viewport and as a component to the actor in the details panel.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-170085 in the post.

Login to Vote

ComponentUE - Gameplay - Blueprint Editor
Affects Versions5.1
Target Fix5.5
CreatedNov 14, 2022
UpdatedFeb 8, 2024