x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

AnswerHub Maintenance

Background maintenance is scheduled to occur between 9 - 11am EDT on Tuesday, May 21. Site operation may be slower than normal during this time and a brief interruption in operation may be observed

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ň

Product Version: UE 4.18
Tags:
more ▼

asked Dec 28 '17 at 06:36 PM in C++ Programming

avatar image

wonka007
11 3 3

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

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.

more ▼

answered Dec 28 '17 at 06:42 PM

avatar image

xlar8or
6k 160 128 304

avatar image wonka007 Dec 28 '17 at 07:31 PM

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

avatar image xlar8or Dec 28 '17 at 07:58 PM

Why do you want this?

avatar image wonka007 Dec 28 '17 at 08:17 PM

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

avatar image xlar8or Dec 28 '17 at 08:24 PM

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.

avatar image wonka007 Dec 28 '17 at 09:16 PM

OK. Thanks you very much :D

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question