# Get component by class, with components added to class inside an instance (UE5.1)

**URL:** <https://forums.unrealengine.com/t/get-component-by-class-with-components-added-to-class-inside-an-instance-ue5-1/1423562>\
**Category:** Blueprint\
**Tags:** hierarchy, Class, instance, parent-class, unreal-engine, Blueprint, question\
**Created:** [November 26, 2023, 7:04pm UTC](https://forums.unrealengine.com/t/get-component-by-class-with-components-added-to-class-inside-an-instance-ue5-1/1423562 "2023-11-26T19:04:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gvnnp](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gvnnp](https://forums.unrealengine.com/u/gvnnp)\
**Post date:** [November 26, 2023, 7:04pm UTC](https://forums.unrealengine.com/t/get-component-by-class-with-components-added-to-class-inside-an-instance-ue5-1/1423562/1 "2023-11-26T19:04:47Z")

</div>

Hi,  
I have a project where inside the construction script, i use the node “get components by class (Box collision)”. The problem is that if i create an instance (object) of that class and i place it in the world, and then i add a box collision component, the constructon script, trought the node “get components by class (Box collision)”, returns only the components there are in the class (without the components i added in the instance). How can i get the components added to the instance too?
