# How to reference an instance in the scene using c++?

**URL:** <https://forums.unrealengine.com/t/how-to-reference-an-instance-in-the-scene-using-c/1324799>\
**Category:** C++\
**Tags:** unreal-engine, scene, CPP, question\
**Created:** [October 7, 2023, 1:15am UTC](https://forums.unrealengine.com/t/how-to-reference-an-instance-in-the-scene-using-c/1324799 "2023-10-07T01:15:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amer1can\_Patriot](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/amer1can_patriot/32/783174_2.png) [@Amer1can\_Patriot](https://forums.unrealengine.com/u/Amer1can_Patriot)\
**Post date:** [October 7, 2023, 1:15am UTC](https://forums.unrealengine.com/t/how-to-reference-an-instance-in-the-scene-using-c/1324799/1 "2023-10-07T01:15:39Z")

</div>

Is there a way to quickly access instances using c++?  
In Roblox Studio it is possible to do this:  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/6/8/f682ff1643c9dd142dc31da2207f6bad96627d33.png)

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/c/8/4c8959d1f5b1b5323b1395001e8a96c7878717f8.png)  
Is it possible to do something like this in UE5?
