# Add item from scene to array

**URL:** <https://forums.unrealengine.com/t/add-item-from-scene-to-array/292518>\
**Category:** C++\
**Tags:** tarray, unreal-engine, CPP, question\
**Created:** [August 31, 2014, 5:59pm UTC](https://forums.unrealengine.com/t/add-item-from-scene-to-array/292518 "2014-08-31T17:59:48Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [August 31, 2014, 7:09pm UTC](https://forums.unrealengine.com/t/add-item-from-scene-to-array/292518/2 "2014-08-31T19:09:28Z")

</div>

In defaults you can only select actors that are inside level placed in editor, not once that are spawn during gameplay, because blueprint system cant name them until they are spawned. So you could place task like a object on the level, would be good if you would add atleast billboard component to your task class so you can see it on level in editor. If you use ATaks as base class for diffrent tasks that you spawn, you could use UClass type or more specificly:

```
SubclassOf<ATask>

```

which will limit selection in editor to specific base class and then use it to spawn content of that array

Other then that you would need to use iterators to get unrealated actor that been spawn during gameplay, you need to do that when the object will be spawned

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — https://unrealcommunity.wiki/! You will be able to find content from...

Blueprint has equivlent of that too

---

_[View the full topic](https://forums.unrealengine.com/t/add-item-from-scene-to-array/292518)._
