Table of Contents

ReturnToPool Method

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 bool

true 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.