How actors are stored in Engine?

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ň

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

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.

Why do you want this?

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.

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

OK. Thanks you very much :smiley: