SerialisableComponentPool Methods |
[This is preliminary documentation and is subject to change.]
The SerialisableComponentPool type exposes the following members.
Name | Description | |
---|---|---|
![]() | AcquireT |
Acquires an instance of the component.
|
![]() | AcquireT(Transform) |
Acquires an instance of the component, and sets the parent transform of its GameObject.
|
![]() | AcquireT(Vector3, Quaternion) |
Acquires an instance of the component, and sets the position and rotation of its GameObject.
|
![]() | AcquireT(Transform, Vector3, Quaternion) |
Acquires an instance of the component, and sets the parent transform, position and rotation of its GameObject.
|
![]() | CheckTypeT |
A conditionally-compiled helper method that checks if the type T is assignable from ComponentType.
|
![]() | Clear |
Clears the pool, emptying it of all pooled objects.
(Inherited from SerialisableObjectPoolT.) |
![]() | Contains |
Determines whether an instance is in the pool.
(Inherited from SerialisableObjectPoolT.) |
![]() | Equals | (Inherited from Object.) |
![]() | Fill |
Fills the pool, populating it with pooled objects until it reaches the maximum pool size.
(Inherited from SerialisableObjectPoolT.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetItems |
Gets a list of items currently contained by the pool, and stores them in the specified ListT.
(Inherited from SerialisableObjectPoolT.) |
![]() | GetObjectFactory |
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 SerialisableGenericComponentPoolT.) |
![]() | GetType | (Inherited from Object.) |
![]() | Initialise |
Initialises the pool, populating it with objects and making it ready for use.
(Inherited from SerialisableObjectPoolT.) |
![]() | Initialise(Boolean) |
Initialises the pool, making it ready for use, and optionally populating it with objects.
(Inherited from SerialisableObjectPoolT.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | OnAfterDeserialize |
Performs actions after the object has been deserialised.
(Inherited from SerialisableGenericComponentPoolT.) |
![]() | OnBeforeSerialize |
Performs actions prior to the object being serialised.
(Inherited from SerialisableGenericComponentPoolT.) |
![]() | OnCanAcquireChanged |
Raises the CanAcquireChanged event.
(Inherited from SerialisableObjectPoolT.) |
![]() | OnCountChanged |
Raises the CountChanged event.
(Inherited from SerialisableObjectPoolT.) |
![]() | OnInitialised |
Raises the Initialised event.
(Inherited from SerialisableObjectPoolT.) |
![]() | OnObjectAcquired |
Raises the ObjectAcquired event.
(Inherited from SerialisableGenericComponentPoolT.) |
![]() | OnObjectDestroyed |
Raises the ObjectDestroyed event.
(Inherited from SerialisableGenericComponentPoolT.) |
![]() | OnObjectInstantiated |
Raises the ObjectInstantiated event.
(Inherited from SerialisableObjectPoolT.) |
![]() | OnObjectReleased |
Raises the ObjectReleased event.
(Inherited from SerialisableGenericComponentPoolT.) |
![]() | Release |
Releases an object back to the pool.
(Inherited from SerialisableObjectPoolT.) |
![]() | ReleaseInternal |
Releases an object back to the pool.
(Inherited from SerialisableGenericComponentPoolT.) |
![]() | Remove |
Removes the specified instance from the pool.
(Inherited from SerialisableObjectPoolT.) |
![]() | SetSize |
Sets the number of objects contained by the pool, either destroying excess pooled objects, or instantiating new ones.
(Inherited from SerialisableObjectPoolT.) |
![]() | ToString | (Inherited from Object.) |
![]() | TryAcquire(T) |
Acquires an object from the pool.
(Inherited from SerialisableObjectPoolT.) |
![]() | TryAcquire(Transform, T) |
Acquires an instance of the component, and sets the parent transform of its GameObject.
(Inherited from SerialisableGenericComponentPoolT.) |
![]() | TryAcquire(Vector3, Quaternion, T) |
Acquires an instance of the component, and sets the position and rotation of its GameObject.
(Inherited from SerialisableGenericComponentPoolT.) |
![]() | TryAcquire(Transform, Vector3, Quaternion, T) |
Acquires an instance of the component, and sets the parent transform, position and rotation of its GameObject.
(Inherited from SerialisableGenericComponentPoolT.) |
![]() | TryAcquireT(T) |
Acquires an instance of the component.
|
![]() | TryAcquireT(Transform, T) |
Acquires an instance of the component, and sets the parent transform of its GameObject.
|
![]() | TryAcquireT(Vector3, Quaternion, T) |
Acquires an instance of the component, and sets the position and rotation of its GameObject.
|
![]() | TryAcquireT(Transform, Vector3, Quaternion, T) |
Acquires an instance of the component, and sets the parent transform, position and rotation of its GameObject.
|