Persistent objects

Hello !

I was wondering if any of you have tried to have persistant objects through scenes.
I would like to keep some managers on several scenes without having to put them in each scenes.
It’s the equivalent of the “DontDestroyOnLoad” in Unity.
I looked for solution every where, tried different solutions with loading scenes, having one scene that is never deleted, etc. but the engine seems to have some problems with several loaded scenes at the same time.
One Option to prevent deletion on objects when loading scene would be appreciated :slight_smile:

In Flax, we have a little better design for such usability called: GamePlguin.

Plugins are initialized before scenes are loaded, and can be easily referenced from game code and scripts (eg. to register all POI objects in the level within a plugin to handle some gameplay).

Plugins can contain custom gameplay logic that stays active between scene changed.

Docs: Plugins | Flax Documentation