# How actors are stored in Engine?

**URL:** <https://forums.unrealengine.com/t/how-actors-are-stored-in-engine/413305>\
**Category:** Architectural and Design Visualization\
**Tags:** unreal-engine, architecture, UE4, CPP, question\
**Created:** [December 28, 2017, 6:36pm UTC](https://forums.unrealengine.com/t/how-actors-are-stored-in-engine/413305 "2017-12-28T18:36:41Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![wonka007](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@wonka007](https://forums.unrealengine.com/u/wonka007)\
**Post date:** [December 28, 2017, 6:36pm UTC](https://forums.unrealengine.com/t/how-actors-are-stored-in-engine/413305/1 "2017-12-28T18:36:41Z")

</div>

HI Guys,  
I was wondering how are Objects (Actors, UObjects) stored in the Engine.  
I think that there should be some massive TArray or Set which is iterated every frame to call Update and Render function on every object.

Does someone know how it work?

Thanks for any answer.

Vít Gardoň

---

<div class="post-metadata">

**Author:** ![xlar8or](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/xlar8or/32/710746_2.png) [@xlar8or](https://forums.unrealengine.com/u/xlar8or)\
**Post date:** [December 28, 2017, 6:42pm UTC](https://forums.unrealengine.com/t/how-actors-are-stored-in-engine/413305/2 "2017-12-28T18:42:53Z")

</div>

Hey there, i don’t know the specifics but my guess is that on every level instance there is an array of actors that belong to it.

---

<div class="post-metadata">

**Author:** ![wonka007](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@wonka007](https://forums.unrealengine.com/u/wonka007)\
**Post date:** [December 28, 2017, 7:31pm UTC](https://forums.unrealengine.com/t/how-actors-are-stored-in-engine/413305/3 "2017-12-28T19:31:12Z")

</div>

Yes, Level contain TArray of actor in the level, but there isn’t any Update or Render function which I am looking for :\_(

---

<div class="post-metadata">

**Author:** ![xlar8or](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/xlar8or/32/710746_2.png) [@xlar8or](https://forums.unrealengine.com/u/xlar8or)\
**Post date:** [December 28, 2017, 7:58pm UTC](https://forums.unrealengine.com/t/how-actors-are-stored-in-engine/413305/4 "2017-12-28T19:58:34Z")

</div>

Why do you want this?

---

<div class="post-metadata">

**Author:** ![wonka007](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@wonka007](https://forums.unrealengine.com/u/wonka007)\
**Post date:** [December 28, 2017, 8:17pm UTC](https://forums.unrealengine.com/t/how-actors-are-stored-in-engine/413305/5 "2017-12-28T20:17:26Z")

</div>

I am trying to implement component system to my engine for game. And i dont know how to manage storaing of actors.

---

<div class="post-metadata">

**Author:** ![xlar8or](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/xlar8or/32/710746_2.png) [@xlar8or](https://forums.unrealengine.com/u/xlar8or)\
**Post date:** [December 28, 2017, 8:24pm UTC](https://forums.unrealengine.com/t/how-actors-are-stored-in-engine/413305/6 "2017-12-28T20:24:05Z")

</div>

So you are creating your own engine for your game and want to see what ue 4 does as a reference? The engine is a bit more complex to just have a simple Update or Render functions for them. For the Update you have to look at the code and see what PrimaryTickActor does, because afaik that is what calls the tick function. Can’t help you with the Render function, not familiar with the engine code on that part.

---

<div class="post-metadata">

**Author:** ![wonka007](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@wonka007](https://forums.unrealengine.com/u/wonka007)\
**Post date:** [December 28, 2017, 9:16pm UTC](https://forums.unrealengine.com/t/how-actors-are-stored-in-engine/413305/7 "2017-12-28T21:16:11Z")

</div>

OK. Thanks you very much 😃
