Class PoolableObject
When attached to an object, this object can now be used in a ObjectPool
Namespace: WeaverCore
Assembly: WeaverCore.dll
Syntax
public sealed class PoolableObject : MonoBehaviour
Properties
| Edit this page View SourceInPool
Is the object currently in a pool?
Declaration
public bool InPool { get; }
Property Value
Type | Description |
---|---|
bool |
SourcePool
The pool the object was instantiated from
Declaration
public ObjectPool SourcePool { get; }
Property Value
Type | Description |
---|---|
ObjectPool |
transform
Declaration
public Transform transform { get; }
Property Value
Type | Description |
---|---|
Transform |
Methods
| Edit this page View SourceReturnToPool()
Returns the object to the pool is came from
Declaration
public void ReturnToPool()
ReturnToPool(float)
Returns the object to the pool it came from
Declaration
public void ReturnToPool(float time)
Parameters
Type | Name | Description |
---|---|---|
float | time | A time delay before it's returned to the pool |