# Component doesn't appear in editor details panel

**URL:** <https://forums.unrealengine.com/t/component-doesnt-appear-in-editor-details-panel/447730>\
**Category:** Community & Industry Discussion\
**Tags:** details-panel, spawn-actor, unreal-engine, component, question\
**Created:** [April 23, 2019, 7:19pm UTC](https://forums.unrealengine.com/t/component-doesnt-appear-in-editor-details-panel/447730 "2019-04-23T19:19:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![luis9303](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@luis9303](https://forums.unrealengine.com/u/luis9303)\
**Post date:** [April 23, 2019, 7:19pm UTC](https://forums.unrealengine.com/t/component-doesnt-appear-in-editor-details-panel/447730/1 "2019-04-23T19:19:59Z")

</div>

Hi there,

I have been trying to create a component inside the PostEditChangeProperty for a Spawner I’m making.  
The problem is that I just create it as normal

```
UMyBoxComponent* Comp = NewObject<UMyBoxComponent>(this, UMyBoxComponent::StaticClass(), TEXT("BOX_COMPONENT"));
	Comp->bEditableWhenInherited = true;
	Comp->SetHiddenInGame(false);
	Comp->SetupAttachment(RootComponent);
	Comp->RegisterComponent();

```

For some reason the details panel doesn’t show the component even though I am 100% sure is created. (I have printed the child actors of RootComponent).

Need Help from anyone who have been through the same issue.

Note: A friend told me that my code works in other versions like 4.19, but I need this to be working on 4.21.

---

<div class="post-metadata">

**Author:** ![Lardo\_Deepdelver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lardo\_Deepdelver](https://forums.unrealengine.com/u/Lardo_Deepdelver)\
**Post date:** [April 24, 2019, 11:44am UTC](https://forums.unrealengine.com/t/component-doesnt-appear-in-editor-details-panel/447730/2 "2019-04-24T11:44:48Z")

</div>

is there a specific reason that you have to create the component in the PostEditChangeProperty and not in the constructor?

---

<div class="post-metadata">

**Author:** ![luis9303](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@luis9303](https://forums.unrealengine.com/u/luis9303)\
**Post date:** [April 26, 2019, 12:49pm UTC](https://forums.unrealengine.com/t/component-doesnt-appear-in-editor-details-panel/447730/3 "2019-04-26T12:49:37Z")

</div>

Hello, sorry for the late response.  
Yes, I want to create a tool for the game designers that allows them to select the number of boxes that will be created, all of this works in the details panel.  
In this panel they have an int variable which should let them see this 3 boxes created as childs of RootComponent and of course allow them to move and use them on the map.

Any clue would be so well received.

---

<div class="post-metadata">

**Author:** ![phil\_me\_up](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@phil\_me\_up](https://forums.unrealengine.com/u/phil_me_up)\
**Post date:** [April 26, 2019, 4:43pm UTC](https://forums.unrealengine.com/t/component-doesnt-appear-in-editor-details-panel/447730/4 "2019-04-26T16:43:41Z")

</div>

Would it be simpler just to ask the designers to use the ‘AddComponent’ menu rather than trying to build this into PostEditChangeProperty. I can see what you’re working towards but you might end up with more issues as a result of this (in terms of managing the boxes and not adding / removing in error)
