# \[Editor Utility\]Adding component to actor in level

**URL:** <https://forums.unrealengine.com/t/editor-utility-adding-component-to-actor-in-level/479753>\
**Category:** Pipeline & Plugins\
**Tags:** editor-utility-widge, details-panel, add-component, unreal-engine, editor, question\
**Created:** [March 4, 2021, 2:11pm UTC](https://forums.unrealengine.com/t/editor-utility-adding-component-to-actor-in-level/479753 "2021-03-04T14:11:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Codes97](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Codes97](https://forums.unrealengine.com/u/Codes97)\
**Post date:** [March 4, 2021, 2:11pm UTC](https://forums.unrealengine.com/t/editor-utility-adding-component-to-actor-in-level/479753/1 "2021-03-04T14:11:13Z")

</div>

Hi i’m trying to make an editor utility that adds an ActorComponent to objects I have selected in the level. The problem is that the component added never is visible in the details panel, but if I iterate over the actor’s components it exists. But if I close and save the level and reopen it, the component added never saved.

AddComponent Blueprint:

 ![331514-addcomponentbp.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/2/4/a245ad9f097b738726c58fb4fe9c60e6613b3fc6.png)

TestComponent Blueprint:

 ![331515-testcomponentbp.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/9/9/399775613794bd758b7c82dc57b4164bb76297de.png)

Result after using both functions as Scripted Actions:

```
LogBlueprintUserMessages: [None] Component GeometryDataComponent_0 added to actor Actor_5
LogBlueprintUserMessages: [None] Component GeometryDataComponent_0 exists in actor Actor_5

```

I also tried connecting the actor to the “World Context Object”, and also connected the GetEditorWorld. But nothing works.

Any idea?

---

<div class="post-metadata">

**Author:** ![Dr.Hanz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dr.Hanz](https://forums.unrealengine.com/u/Dr.Hanz)\
**Post date:** [July 15, 2021, 6:34pm UTC](https://forums.unrealengine.com/t/editor-utility-adding-component-to-actor-in-level/479753/2 "2021-07-15T18:34:38Z")

</div>

If you made your actor component in the editor that did not work for me either… if you add component to any actor in a level and make a blueprint or C++ script component off of it that runs through setting up a new class that inherits from Actor Component

wasn’t able to find a different in editor option to make a blueprint script component so there’s probably another way, if you find it would love to know, but that should work for ya

![344220-editorcomp.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/2/7/d2782c09581aa519160eaebabfc251947fd8b338.png)

---

<div class="post-metadata">

**Author:** ![MOTYSHIZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MOTYSHIZ](https://forums.unrealengine.com/u/MOTYSHIZ)\
**Post date:** [October 4, 2022, 10:13pm UTC](https://forums.unrealengine.com/t/editor-utility-adding-component-to-actor-in-level/479753/3 "2022-10-04T22:13:48Z")

</div>

Hello there, just wondering if you ever found out how to get this working, as  
I’m currently facing the same issue.

---

<div class="post-metadata">

**Author:** ![Ares9323](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ares9323/32/1194521_2.png) [@Ares9323](https://forums.unrealengine.com/u/Ares9323)\
**Post date:** [February 7, 2023, 1:19pm UTC](https://forums.unrealengine.com/t/editor-utility-adding-component-to-actor-in-level/479753/5 "2023-02-07T13:19:38Z")

</div>

I found a solution but it only works in Unreal 5.0+

[Add a component with Blueprint script in the editor](https://dev.epicgames.com/community/snippets/dV5/add-a-component-with-blueprint-script-in-the-editor)

---

<div class="post-metadata">

**Author:** ![PDubulous](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pdubulous/32/1194655_2.png) [@PDubulous](https://forums.unrealengine.com/u/PDubulous)\
**Post date:** [April 2, 2025, 9:28pm UTC](https://forums.unrealengine.com/t/editor-utility-adding-component-to-actor-in-level/479753/6 "2025-04-02T21:28:02Z")

</div>

This works in 5.3

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/9/c/19c858641ac25cd8d0ab4e96d0ba4b99be9920d3.jpeg)

[Editor Utility for adding an Actor Component to an Actor posted by PDubulous | blueprintUE | PasteBin For Unreal Engine](https://blueprintue.com/blueprint/x60_fjrp/)
