Table of Contents

Class MonoBehaviourPool<T>

Namespace
Gamelogic.Extensions
Assembly
Gamelogic.Extensions.dll

A pool suitable for MonoBehaviour objects that can be instantiated from a given prefab.

public class MonoBehaviourPool<T> where T : MonoBehaviour

Type Parameters

T
Inheritance
MonoBehaviourPool<T>
Inherited Members
Extension Methods

Constructors

MonoBehaviourPool(T, GameObject, int, Action<T>, Action<T>)

Initializes a new instance of the MonoBehaviourPool<T> class.

Properties

IsObjectAvailable

Gets a value indicating whether a sleeping object is available.

Methods

DecCapacity(int)

Decreases the capacity of the pool.

GetNewObject()

Gets a freshly awoken object from the pool.

IncCapacity(int)

Increases thew capacity of the pool.

ReleaseObject(T)

Releases the specified object back to the pool.