ReturnToPool Method
- Namespace
- SatorImaging.UnityFundamentals
ReturnToPool()
public void ReturnToPool()
Return instance to pool. Note that host GameObject
will be marked as DontDestroyOnLoad
.
ReturnToPool(bool)
public void ReturnToPool(bool returnNestedPoolables)
Return instance to pool. Note that host GameObject
will be marked as DontDestroyOnLoad
.
Parameters
returnNestedPoolables
booltrue to return nested GameObjects to pool which have IPoolableBehaviour component. (ie. poolable hierarchy will be flatten)
NOTE: if this parameter ON and OFF are mixed for same type, it's not able to control to take whether instance with or without nested poolables.