Click or drag to resize

SerialisableComponentPool Methods

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

The SerialisableComponentPool type exposes the following members.

Methods
  NameDescription
Public methodAcquire<T>()
Acquires an instance of the component.
Public methodAcquire<T>(Transform)
Acquires an instance of the component, and sets the parent transform of its GameObject.
Public methodAcquire<T>(Vector3, Quaternion)
Acquires an instance of the component, and sets the position and rotation of its GameObject.
Public methodAcquire<T>(Transform, Vector3, Quaternion)
Acquires an instance of the component, and sets the parent transform, position and rotation of its GameObject.
Protected methodCheckType<T>
A conditionally-compiled helper method that checks if the type T is assignable from ComponentType.
Public methodClear
Clears the pool, emptying it of all pooled objects.
(Inherited from SerialisableObjectPool<T>.)
Public methodContains
Determines whether an instance is in the pool.
(Inherited from SerialisableObjectPool<T>.)
Public methodEquals (Inherited from Object.)
Public methodFill
Fills the pool, populating it with pooled objects until it reaches the maximum pool size.
(Inherited from SerialisableObjectPool<T>.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetItems (Inherited from SerialisableObjectPool<T>.)
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.
(Inherited from SerialisableGenericComponentPool<T>.)
Public methodGetType (Inherited from Object.)
Public methodInitialise()
Initialises the pool, populating it with objects and making it ready for use.
(Inherited from SerialisableObjectPool<T>.)
Protected methodInitialise(Boolean)
Initialises the pool, making it ready for use, and optionally populating it with objects.
(Inherited from SerialisableObjectPool<T>.)
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodOnAfterDeserialize
Performs actions after the object has been deserialised.
(Inherited from SerialisableGenericComponentPool<T>.)
Protected methodOnBeforeSerialize
Performs actions prior to the object being serialised.
(Inherited from SerialisableGenericComponentPool<T>.)
Protected methodOnCanAcquireChanged
Raises the CanAcquireChanged event.
(Inherited from SerialisableObjectPool<T>.)
Protected methodOnCountChanged
Raises the CountChanged event.
(Inherited from SerialisableObjectPool<T>.)
Protected methodOnInitialised
Raises the Initialised event.
(Inherited from SerialisableObjectPool<T>.)
Protected methodOnObjectAcquired
Raises the ObjectAcquired event.
(Inherited from SerialisableGenericComponentPool<T>.)
Protected methodOnObjectDestroyed
Raises the ObjectDestroyed event.
(Inherited from SerialisableGenericComponentPool<T>.)
Protected methodOnObjectInstantiated
Raises the ObjectInstantiated event.
(Inherited from SerialisableObjectPool<T>.)
Protected methodOnObjectReleased
Raises the ObjectReleased event.
(Inherited from SerialisableGenericComponentPool<T>.)
Public methodRelease
Releases an object back to the pool.
(Inherited from SerialisableObjectPool<T>.)
Protected methodReleaseInternal
Releases an object back to the pool.
(Inherited from SerialisableGenericComponentPool<T>.)
Public methodRemove
Removes the specified instance from the pool.
(Inherited from SerialisableObjectPool<T>.)
Public methodSetSize
Sets the number of objects contained by the pool, either destroying excess pooled objects, or instantiating new ones.
(Inherited from SerialisableObjectPool<T>.)
Public methodToString (Inherited from Object.)
Public methodTryAcquire(T)
Acquires an object from the pool.
(Inherited from SerialisableObjectPool<T>.)
Public methodTryAcquire(Transform, T)
Acquires an instance of the component, and sets the parent transform of its GameObject.
(Inherited from SerialisableGenericComponentPool<T>.)
Public methodTryAcquire(Vector3, Quaternion, T)
Acquires an instance of the component, and sets the position and rotation of its GameObject.
(Inherited from SerialisableGenericComponentPool<T>.)
Public methodTryAcquire(Transform, Vector3, Quaternion, T)
Acquires an instance of the component, and sets the parent transform, position and rotation of its GameObject.
(Inherited from SerialisableGenericComponentPool<T>.)
Public methodTryAcquire<T>(T)
Acquires an instance of the component.
Public methodTryAcquire<T>(Transform, T)
Acquires an instance of the component, and sets the parent transform of its GameObject.
Public methodTryAcquire<T>(Vector3, Quaternion, T)
Acquires an instance of the component, and sets the position and rotation of its GameObject.
Public methodTryAcquire<T>(Transform, Vector3, Quaternion, T)
Acquires an instance of the component, and sets the parent transform, position and rotation of its GameObject.
Top
See Also