Table of Contents

Class FastPoolManager

Namespace
Global
Assembly
Assembly-CSharp.dll
public class FastPoolManager : MonoBehaviour
Inheritance
FastPoolManager

Constructors

FastPoolManager()

public FastPoolManager()

Properties

Instance

public static FastPoolManager Instance { get; }

Property Value

FastPoolManager

Pools

public Dictionary<int, FastPool> Pools { get; }

Property Value

Dictionary<int, FastPool>

Methods

CreatePool(int, GameObject, bool, int, int)

public static FastPool CreatePool(int id, GameObject prefab, bool warmOnLoad = true, int preloadCount = 0, int capacity = 0)

Parameters

id int
prefab GameObject
warmOnLoad bool
preloadCount int
capacity int

Returns

FastPool

CreatePool(GameObject, bool, int, int)

public static FastPool CreatePool(GameObject prefab, bool warmOnLoad = true, int preloadCount = 0, int capacity = 0)

Parameters

prefab GameObject
warmOnLoad bool
preloadCount int
capacity int

Returns

FastPool

CreatePoolC<T>(T, bool, int, int)

public static FastPool CreatePoolC<T>(T component, bool warmOnLoad = true, int preloadCount = 0, int capacity = 0) where T : Component

Parameters

component T
warmOnLoad bool
preloadCount int
capacity int

Returns

FastPool

Type Parameters

T

DestroyPool(FastPool)

public static void DestroyPool(FastPool pool)

Parameters

pool FastPool

GetPool(int, GameObject, bool)

public static FastPool GetPool(int id, GameObject prefab, bool createIfNotExists = true)

Parameters

id int
prefab GameObject
createIfNotExists bool

Returns

FastPool

GetPool(Component, bool)

public static FastPool GetPool(Component component, bool createIfNotExists = true)

Parameters

component Component
createIfNotExists bool

Returns

FastPool

GetPool(GameObject, bool)

public static FastPool GetPool(GameObject prefab, bool createIfNotExists = true)

Parameters

prefab GameObject
createIfNotExists bool

Returns

FastPool