# The problem with GetChildrenComponents()

**URL:** <https://forums.unrealengine.com/t/the-problem-with-getchildrencomponents/379563>\
**Category:** World Creation\
**Tags:** child-actor-componen, root-component, unreal-engine, Physics, Blueprint, CPP, question\
**Created:** [December 17, 2016, 6:55pm UTC](https://forums.unrealengine.com/t/the-problem-with-getchildrencomponents/379563 "2016-12-17T18:55:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NODARYN](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NODARYN](https://forums.unrealengine.com/u/NODARYN)\
**Post date:** [December 17, 2016, 6:55pm UTC](https://forums.unrealengine.com/t/the-problem-with-getchildrencomponents/379563/1 "2016-12-17T18:55:21Z")

</div>

Hey. I create the actor, adding to his cube, do it physically, then in the constructor function call GetChildrenComponents and writes the results into an array. 2 shows the array element - right. Then I try to do the same thing in C ++: constructor RootComponent-\> GetChildrenComponent (true, ArrayChildren). I pass to the editor, conscious cube, do it physically. However, the array elements 0! Why? If the cube does not do the physical, it shows an element 1 - true. Tell me, please, what to do?
