Click or drag to resize

MonoBehaviourPoolT Class

A pool suitable for MonoBehaviour objects that can be instantiated from a given prefab.
Inheritance Hierarchy
SystemObject
  Gamelogic.ExtensionsMonoBehaviourPoolT

Namespace:  Gamelogic.Extensions
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public class MonoBehaviourPool<T>
where T : MonoBehaviour

Type Parameters

T

The MonoBehaviourPoolT type exposes the following members.

Constructors
  NameDescription
Public methodMonoBehaviourPoolT
Initializes a new instance of the MonoBehaviourPoolT class.
Top
Properties
  NameDescription
Public propertyIsObjectAvailable
Gets a value indicating whether a sleeping object is available.
Top
Methods
  NameDescription
Public methodDecCapacity
Decreases the capacity of the pool.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetNewObject
Gets a freshly awoken object from the pool.
Public methodGetType (Inherited from Object.)
Public methodIncCapacity
Increases thew capacity of the pool.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodReleaseObject
Releases the specified object back to the pool.
Public methodToString (Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodThrowIfNull
Throws a NullReferenceException if the object is null.
(Defined by ObjectExtensions.)
Top
See Also