Click or drag to resize

PoolBaseTSource, TInstance, TSettingsDontDestroyOnLoad Property

[This is preliminary documentation and is subject to change.]

Gets or sets a value indicating whether the pool should persist between scene changes.

Namespace:  Umbrace.Unity.PurePool
Assembly:  Umbrace.Unity.PurePool (in Umbrace.Unity.PurePool.dll) Version: 0.0.0.0 (1.0.0.0)
Syntax
C#
public bool DontDestroyOnLoad { get; set; }

Property Value

Type: Boolean

Implements

ISharedPoolSettingsDontDestroyOnLoad
Remarks

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.

See Also