The ObjectPoolController type exposes the following members.

Methods

  Name Description
Public method Static member Destroy
Destroys the specified game object, respectively sets the object inactive and adds it to the pool.
Public method Static member Instantiate(GameObject)
Retrieves an instance of the specified prefab. Either returns a new instance or it claims an instance from the pool.
Public method Static member Instantiate(GameObject, Vector3, Quaternion)
Retrieves an instance of the specified prefab. Either returns a new instance or it claims an instance from the pool.
Public method Static member InstantiateWithoutPool(GameObject)
Instantiates the specified prefab without using pooling. from the pool.
Public method Static member InstantiateWithoutPool(GameObject, Vector3, Quaternion)
Instantiates the specified prefab without using pooling. from the pool.
Public method Static member Preload
Preloads as many instances to the pool so that there are at least as many as specified in preloadCount.

Properties

  Name Description
Public property Static member isDuringPreload

See Also