ObjectPoolController Class |
Namespace: (Default Namespace)
public static class ObjectPoolController
The ObjectPoolController type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | isDuringPreload |
Name | Description | |
---|---|---|
![]() ![]() | Destroy |
Destroys the specified game object, respectively sets the object inactive and adds it to the pool.
|
![]() ![]() | Instantiate(GameObject) |
Retrieves an instance of the specified prefab. Either returns a new instance or it claims an instance
from the pool.
|
![]() ![]() | Instantiate(GameObject, Vector3, Quaternion) |
Retrieves an instance of the specified prefab. Either returns a new instance or it claims an instance
from the pool.
|
![]() ![]() | InstantiateWithoutPool(GameObject) |
Instantiates the specified prefab without using pooling.
from the pool.
|
![]() ![]() | InstantiateWithoutPool(GameObject, Vector3, Quaternion) |
Instantiates the specified prefab without using pooling.
from the pool.
|
![]() ![]() | Preload |
Preloads as many instances to the pool so that there are at least as many as
specified in preloadCount.
|