# Empty Details Panel

**URL:** <https://forums.unrealengine.com/t/empty-details-panel/243743>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [August 3, 2021, 10:47pm UTC](https://forums.unrealengine.com/t/empty-details-panel/243743 "2021-08-03T22:47:04Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![TFISHY](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TFISHY](https://forums.unrealengine.com/u/TFISHY)\
**Post date:** [August 3, 2021, 10:47pm UTC](https://forums.unrealengine.com/t/empty-details-panel/243743/1 "2021-08-03T22:47:04Z")

</div>

So I have created a separate actor that contains components in use for a headlamp (flashlight) so that I don’t have to have the logic in the player character. **See Below Screenshot**

 ![HeadLamp_H](https://d3kjluh73b9h9o.cloudfront.net/original/3X/3/0/30f1e3ef3f58c0dc6625917ddea75c304afc148f.jpeg)

The problem I am having is that the inherited components panels are all blank no matter what I do. I have tried to look through other forum posts and am still having this problem. **See Below Screenshot**

 ![No_Details](https://d3kjluh73b9h9o.cloudfront.net/original/3X/9/3/9332ccc21af9b47868acab43720beaa4cbdea9e5.jpeg)

I am initializing the components in the player character instead of the actor because they need to be children of the camera. **See Below Screenshots**

 ![Player_Constructor](https://d3kjluh73b9h9o.cloudfront.net/original/3X/1/c/1cd90a73753a93960fbbe5778d7d2c53cb1cc006.jpeg)  
 ![Player_H](https://d3kjluh73b9h9o.cloudfront.net/original/3X/3/0/30ee97d70cd256d334b1197051fc22f809c177ea.jpeg)

Any help would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![Grim\_1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/grim_1/32/88715_2.png) [@Grim\_1](https://forums.unrealengine.com/u/Grim_1)\
**Post date:** [August 4, 2021, 10:16am UTC](https://forums.unrealengine.com/t/empty-details-panel/243743/2 "2021-08-04T10:16:39Z")

</div>

I don’t know what component you have highlighted in the screenshot with the Blueprint hierarchy but it is not your the headlamp that you have shown in the other screenshots. You have made an actor (AHeadLamp), and actors cannot be be subobjects of other actors, you have to make a type of class UActorComponent for that. You also need to use CreateDefaultSubobject in the constructor of the actor to create the component, not NewObject.

---

<div class="post-metadata">

**Author:** ![TFISHY](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TFISHY](https://forums.unrealengine.com/u/TFISHY)\
**Post date:** [August 4, 2021, 1:08pm UTC](https://forums.unrealengine.com/t/empty-details-panel/243743/3 "2021-08-04T13:08:53Z")

</div>

Yeah I have tried messing around with UActorComponent before. I will check again and see if that fixes the problem. Also the component I have highlighted in the blueprint is a component inside of AHeadLamp.

Thanks

---

<div class="post-metadata">

**Author:** ![TFISHY](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TFISHY](https://forums.unrealengine.com/u/TFISHY)\
**Post date:** [August 4, 2021, 2:47pm UTC](https://forums.unrealengine.com/t/empty-details-panel/243743/4 "2021-08-04T14:47:10Z")

</div>

Looked Into it again and had no luck. Details panel is still blank and Component transforms are inaccessible.

---

<div class="post-metadata">

**Author:** ![Grim\_1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/grim_1/32/88715_2.png) [@Grim\_1](https://forums.unrealengine.com/u/Grim_1)\
**Post date:** [August 4, 2021, 3:51pm UTC](https://forums.unrealengine.com/t/empty-details-panel/243743/5 "2021-08-04T15:51:28Z")

</div>

So the parent class of the Blueprint (PlayerCharacter) is of type AHeadLamp? I kinda doubt that.

---

<div class="post-metadata">

**Author:** ![TFISHY](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TFISHY](https://forums.unrealengine.com/u/TFISHY)\
**Post date:** [August 4, 2021, 3:57pm UTC](https://forums.unrealengine.com/t/empty-details-panel/243743/6 "2021-08-04T15:57:52Z")

</div>

No, sorry if I didn’t explain it well enough. The parent class of Blueprint (PlayerCharacter) is APlayerCharacter (C++ Class). APlayerCharacter has an AHeadLamp pointer. This class (AHeadLamp) is just used to store components and functions for the headlamp and the APlayerCharacter (C++ Class) initializes all its components. **Forgot to include this screenshot**

 ![InitHeadLamp](https://d3kjluh73b9h9o.cloudfront.net/original/3X/c/d/cd8b1ab05afbb451520259e453f0f63cfc99199a.jpeg)

---

<div class="post-metadata">

**Author:** ![Grim\_1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/grim_1/32/88715_2.png) [@Grim\_1](https://forums.unrealengine.com/u/Grim_1)\
**Post date:** [August 4, 2021, 4:17pm UTC](https://forums.unrealengine.com/t/empty-details-panel/243743/7 "2021-08-04T16:17:11Z")

</div>

Ok I see now and you can’t do it that way. I am surprised the components even show up at all because the belong to a different actor which you have created in the constructor of your player. As I said previously, you can’t have actors as subobjects of another actor. Either you need to attach your headlamp actor to the character (there is an AttachToActor function) or you need to make it an actor component, but if you keep it as actor it will never show up in the hierarchy like I assume you expected it to.

---

<div class="post-metadata">

**Author:** ![TFISHY](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TFISHY](https://forums.unrealengine.com/u/TFISHY)\
**Post date:** [August 4, 2021, 4:23pm UTC](https://forums.unrealengine.com/t/empty-details-panel/243743/8 "2021-08-04T16:23:34Z")

</div>

Okay thanks, Though I still have the problem when it is an ActorComponent. Because my problem is with the other components (See First Screenshot) (LightMid, LightLeft, LightRight, FlashlightArm) since they still need to be initialized in the APlayerCharacter (C++ Class) because actor components don’t have any (RootComponent).

---

<div class="post-metadata">

**Author:** ![Grim\_1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/grim_1/32/88715_2.png) [@Grim\_1](https://forums.unrealengine.com/u/Grim_1)\
**Post date:** [August 4, 2021, 5:24pm UTC](https://forums.unrealengine.com/t/empty-details-panel/243743/9 "2021-08-04T17:24:57Z")

</div>

You can still set up and attach scene components in the player character constructor. You should really read up in the documentation on actors and components and their differences. One of the main differences is that actors have a transform so they can exist on their own in the world. If you want your head lamp to be an object that can lay around in the world and that the player can pick up you need to have it as a separate actor. In this case also read up on sockets, these can be used to attach objects at specific locations.

---

<div class="post-metadata">

**Author:** ![TFISHY](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TFISHY](https://forums.unrealengine.com/u/TFISHY)\
**Post date:** [August 4, 2021, 6:48pm UTC](https://forums.unrealengine.com/t/empty-details-panel/243743/10 "2021-08-04T18:48:57Z")

</div>

I understand the difference between the two. But as I’m stating that is not my problem. The InitalizeHeadLamp() function is called in the player’s constructor as you can see from the third screenshot from the top. My problem is not that I don’t know how to use them, it is that the details panel is clear for the components from the (AHEADLAMP pointer).

My problem is very similar to this forum: [[Solved]Blank detail panel for UStaticMeshComopnent in child blueprint class of a C++ class - #3 by wzspdw](https://forums.unrealengine.com/t/solved-blank-detail-panel-for-ustaticmeshcomopnent-in-child-blueprint-class-of-a-c-class/141378/3)

---

<div class="post-metadata">

**Author:** ![Grim\_1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/grim_1/32/88715_2.png) [@Grim\_1](https://forums.unrealengine.com/u/Grim_1)\
**Post date:** [August 4, 2021, 7:56pm UTC](https://forums.unrealengine.com/t/empty-details-panel/243743/11 "2021-08-04T19:56:50Z")

</div>

> [@TFISHY](#):
>
> My problem is not that I don’t know how to use them, it is that the details panel is clear for the components from the (AHEADLAMP pointer).

I’m sorry but you obviously don’t know how to use them and I already told you you can’t do it that way, the Blueprint system is simply not intended to be used like that and that’s why you are not seeing anything. You have to initialize the properties of AHeadLamp in it’s own constructor, then make a Blueprint actor from that class, and then you will see the details. Afterwards you can attach the headlamp actor to the player camera at runtime.

---

<div class="post-metadata">

**Author:** ![TFISHY](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TFISHY](https://forums.unrealengine.com/u/TFISHY)\
**Post date:** [August 5, 2021, 3:08am UTC](https://forums.unrealengine.com/t/empty-details-panel/243743/12 "2021-08-05T03:08:59Z")

</div>

Alright sorry for any confusion, thanks for your help.
