PoolBaseTSource, TInstance, TSettingsDontDestroyOnLoad Property |
[This is preliminary documentation and is subject to change.]
Namespace: Umbrace.Unity.PurePool
public bool DontDestroyOnLoad { get; set; }
Upon setting the DontDestroyOnLoad property to , the pool will be prevented from being destroyed when loading a new scene.
It's important to make the distinction that it's actually the root transform of the GameObject to which the pool is attached that will persist between scene changes. The root transform is the top-most transform in the hierarchy.
If the PoolBaseTSource, TInstance, TSettings component is removed from its game object, the game object will still persist through scene changes.