MonoBehaviour to provide pooling functionality for child GameObjects. To be eligible they must be created with Acquire and disabled but not destroyed.
More...
|
| static T | Acquire< T > (string name, Vector3 position=default, Quaternion rotation=default, Transform parent=default, bool enable=true, bool poolOnDisable=true) |
| | Use Pool.Acquire<T>() to get a reference to a cloned gameObject instead of Instantiate<T>(). All parameters bar name are optional. More...
|
| |
| static GameObject | Acquire (string name, Vector3 position=default, Quaternion rotation=default, Transform parent=null, bool enable=true, bool poolOnDisable=true) |
| | Use Pool.Acquire() to get a reference to a cloned gameObject instead of Instantiate(). All parameters bar name are optional. More...
|
| |
| static void | Return (GameObject clone) |
| | Give an object created by Acquire in any pool, return it to the pool for reuse. Only needed if poolOnDisable is false More...
|
| |
| static PoolQueue | PoolFor (string name, Pool pool=null) |
| | Retrieve a reference to the pooling queue for the GameObject named More...
|
| |
◆ Acquire()
| static GameObject Askowl.Pool.Acquire |
( |
string |
name, |
|
|
Vector3 |
position = default, |
|
|
Quaternion |
rotation = default, |
|
|
Transform |
parent = null, |
|
|
bool |
enable = true, |
|
|
bool |
poolOnDisable = true |
|
) |
| |
|
static |
◆ Acquire< T >()
| static T Askowl.Pool.Acquire< T > |
( |
string |
name, |
|
|
Vector3 |
position = default, |
|
|
Quaternion |
rotation = default, |
|
|
Transform |
parent = default, |
|
|
bool |
enable = true, |
|
|
bool |
poolOnDisable = true |
|
) |
| |
|
static |
◆ PoolFor()
| static PoolQueue Askowl.Pool.PoolFor |
( |
string |
name, |
|
|
Pool |
pool = null |
|
) |
| |
|
static |
◆ Return()
| static void Askowl.Pool.Return |
( |
GameObject |
clone | ) |
|
|
static |
The documentation for this class was generated from the following file: