Class PoolableMonoBehaviour
MonoBehaviour that has a reference to its parent pool, and can thus be released to the pool without the user needing a reference to its pool, making it self contained. Usable either as a standalone component or as a base class for other components.
Inheritance
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
PoolableMonoBehaviour
Implements
Namespace: QFSW.MOP2
Assembly: QFSW.MOP2.dll
Syntax
public class PoolableMonoBehaviour : MonoBehaviour, IPoolable
Properties
| Improve this Doc View SourcePoolReady
If its parent pool has been initialized yet.
Declaration
public bool PoolReady { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
Methods
| Improve this Doc View SourceRelease()
Releases the object and returns it back to its pool, effectively 'destroying' it from the scene.
Declaration
public void Release()
Explicit Interface Implementations
| Improve this Doc View SourceIPoolable.InitializeTemplate(ObjectPool)
Declaration
void IPoolable.InitializeTemplate(ObjectPool pool)
Parameters
| Type | Name | Description |
|---|---|---|
| ObjectPool | pool |