# Why is my skeletal mesh component not showing up in owned components?

**URL:** <https://forums.unrealengine.com/t/why-is-my-skeletal-mesh-component-not-showing-up-in-owned-components/458135>\
**Category:** Blueprint\
**Tags:** actor, skeletalmeshcomponen, unreal-engine, Scripting, Blueprint, question\
**Created:** [November 7, 2019, 9:44am UTC](https://forums.unrealengine.com/t/why-is-my-skeletal-mesh-component-not-showing-up-in-owned-components/458135 "2019-11-07T09:44:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TimLobner](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TimLobner](https://forums.unrealengine.com/u/TimLobner)\
**Post date:** [November 7, 2019, 9:44am UTC](https://forums.unrealengine.com/t/why-is-my-skeletal-mesh-component-not-showing-up-in-owned-components/458135/1 "2019-11-07T09:44:53Z")

</div>

I have a custom actor class in C++ and a blueprint which uses this custom class as a parent.  
In the blueprint I added a skeletal mesh component, and in my C++ class I set the root to a custom scene component. Thus my structure is

```
CustomRoot
    |
    -----> SkeletalMeshComponent

```

However, when debugging the C++ class, the Skeletal Mesh Component does not appear in the Owned Components of the Actor, is not a child of the root and can’t be found by `GetComponents<USkeletalMeshComponent>` or `FindComponentByClass<USkeletalMeshComponent>()` (since both methods iterate over the owned components).

Why is that and how can I get the Skeletal Mesh Component inside my C++ class (preferably without creating it as a member in the C++ class)?

---

<div class="post-metadata">

**Author:** ![TimLobner](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TimLobner](https://forums.unrealengine.com/u/TimLobner)\
**Post date:** [November 7, 2019, 10:13am UTC](https://forums.unrealengine.com/t/why-is-my-skeletal-mesh-component-not-showing-up-in-owned-components/458135/2 "2019-11-07T10:13:26Z")

</div>

I did my search in the constructor of the actor, which obviously can’t work, since the constructor of the parent class is executed before the constructor of the blueprint. Thus the Skeletal mesh component did not yet exist at the time of search.

I now moved it to BeginPlay and it works.
