#Essential Entities

6 messages · Page 1 of 1 (latest)

junior valve
#

I'm getting a horrifying stack overflow for out spooky jam entry. I can't find the entities I forget to destroy upon restart, so I tagged everything that should stay with a DontDestroyOnRestart tag. Is there an app entity or something? What component would it have? (So I can filter it out)

vague shore
#

Observers are their own entities with an Observer component, so you should probably filter those, i dont know if there are any others

south flare
#

I would suggest recording all of the entities at some point between app startup and when you begin spawning things in, that should capture effectively everything setup by other plugins or crates, such as Windows and contexts

#

Stuff them in an EntityHashSet and then you can difference against it when collecting entities later

#

Or on the flip side, you could add that component to all of them

junior valve
#

Thanks
I'll take collect all existing entities on PreStartUp