Click or drag to resize

SerialisableGameObjectPool Methods

[This is preliminary documentation and is subject to change.]

The SerialisableGameObjectPool type exposes the following members.

Methods
  NameDescription
Public methodAcquire
Acquires an object from the pool.
(Inherited from SerialisableObjectPoolT.)
Public methodAcquire(Transform)
Acquires an instance of the source object, and sets its parent transform.
Public methodAcquire(Transform, Boolean)
Acquires an instance of the source object, and sets its parent transform.
Public methodAcquire(Vector3, Quaternion)
Acquires an instance of the source object, and sets its position and rotation.
Public methodAcquire(Vector3, Quaternion, Transform)
Acquires an instance of the source object, and sets its parent transform, position and rotation.
Public methodClear
Clears the pool, emptying it of all pooled objects.
(Inherited from SerialisableObjectPoolT.)
Public methodContains
Determines whether an instance is in the pool.
(Inherited from SerialisableObjectPoolT.)
Public methodEquals (Inherited from Object.)
Public methodFill
Fills the pool, populating it with pooled objects until it reaches the maximum pool size.
(Inherited from SerialisableObjectPoolT.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetItems (Inherited from SerialisableObjectPoolT.)
Protected methodGetObjectFactory
Gets a function used to create new instances of the pooled type. By default, this method uses the public parameterless constructor of type T. This method should be overridden in a subclass if different behaviour is required.
(Overrides SerialisableObjectPoolTGetObjectFactory.)
Public methodGetType (Inherited from Object.)
Public methodInitialise
Initialises the pool, populating it with objects and making it ready for use.
(Inherited from SerialisableObjectPoolT.)
Protected methodInitialise(Boolean)
Initialises the pool, making it ready for use, and optionally populating it with objects.
(Inherited from SerialisableObjectPoolT.)
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodOnAfterDeserialize
Performs actions after the object has been deserialised.
(Overrides SerialisableObjectPoolTOnAfterDeserialize.)
Protected methodOnBeforeSerialize
Performs actions prior to the object being serialised.
(Overrides SerialisableObjectPoolTOnBeforeSerialize.)
Protected methodOnCanAcquireChanged
Raises the CanAcquireChanged event.
(Inherited from SerialisableObjectPoolT.)
Protected methodOnCountChanged
Raises the CountChanged event.
(Inherited from SerialisableObjectPoolT.)
Protected methodOnInitialised
Raises the Initialised event.
(Inherited from SerialisableObjectPoolT.)
Protected methodOnObjectAcquired
Raises the ObjectAcquired event.
(Overrides SerialisableObjectPoolTOnObjectAcquired(T, Boolean).)
Protected methodOnObjectDestroyed
Raises the ObjectDestroyed event.
(Overrides SerialisableObjectPoolTOnObjectDestroyed(T).)
Protected methodOnObjectInstantiated
Raises the ObjectInstantiated event.
(Inherited from SerialisableObjectPoolT.)
Protected methodOnObjectReleased
Raises the ObjectReleased event.
(Overrides SerialisableObjectPoolTOnObjectReleased(T, Boolean).)
Public methodRelease
Releases an object back to the pool.
(Inherited from SerialisableObjectPoolT.)
Protected methodReleaseInternal
Releases an object back to the pool.
(Overrides SerialisableObjectPoolTReleaseInternal(T).)
Public methodRemove
Removes the specified instance from the pool.
(Inherited from SerialisableObjectPoolT.)
Public methodSetSize
Sets the number of objects contained by the pool, either destroying excess pooled objects, or instantiating new ones.
(Inherited from SerialisableObjectPoolT.)
Public methodToString (Inherited from Object.)
Public methodTryAcquire(T)
Acquires an object from the pool.
(Inherited from SerialisableObjectPoolT.)
Public methodTryAcquire(Transform, GameObject)
Acquires an instance of the source object, and sets its parent transform.
Public methodTryAcquire(Transform, Boolean, GameObject)
Acquires an instance of the source object, and sets its parent transform.
Public methodTryAcquire(Vector3, Quaternion, GameObject)
Acquires an instance of the source object, and sets its position and rotation.
Public methodTryAcquire(Vector3, Quaternion, Transform, GameObject)
Acquires an instance of the source object, and sets its parent transform, position and rotation.
Top
See Also