Click or drag to resize

ObjectPoolController Methods

The ObjectPoolController type exposes the following members.

Methods
  NameDescription
Public methodStatic memberDestroy
Destroys the specified game object, respectively sets the object inactive and adds it to the pool.
Public methodStatic memberInstantiate(GameObject)
Retrieves an instance of the specified prefab. Either returns a new instance or it claims an instance from the pool.
Public methodStatic memberInstantiate(GameObject, Vector3, Quaternion)
Retrieves an instance of the specified prefab. Either returns a new instance or it claims an instance from the pool.
Public methodStatic memberInstantiateWithoutPool(GameObject)
Instantiates the specified prefab without using pooling. from the pool.
Public methodStatic memberInstantiateWithoutPool(GameObject, Vector3, Quaternion)
Instantiates the specified prefab without using pooling. from the pool.
Public methodStatic memberPreload
Preloads as many instances to the pool so that there are at least as many as specified in preloadCount.
Top
See Also