Class FastPool
- Namespace
- Global
- Assembly
- Assembly-CSharp.dll
- Inheritance
-
FastPool
- Inherited Members
-
Constructors
public FastPool(int id, GameObject prefab, Transform rootTransform = null, bool warmOnLoad = true, int preloadCount = 0, int capacity = 0)
Parameters
id
int
prefab
GameObject
rootTransform
Transform
warmOnLoad
bool
preloadCount
int
capacity
int
public FastPool(GameObject prefab, Transform rootTransform = null, bool warmOnLoad = true, int preloadCount = 0, int capacity = 0)
Parameters
prefab
GameObject
rootTransform
Transform
warmOnLoad
bool
preloadCount
int
capacity
int
Fields
Capacity
Field Value
- int
NotificationType
public PoolItemNotificationType NotificationType
Field Value
- PoolItemNotificationType
ParentOnCache
public bool ParentOnCache
Field Value
- bool
PreloadCount
Field Value
- int
WarmOnLoad
Field Value
- bool
Properties
Cached
public int Cached { get; }
Property Value
- int
ID
Property Value
- int
IsValid
public bool IsValid { get; }
Property Value
- bool
Name
public string Name { get; }
Property Value
- string
Methods
ClearCache()
FastDestroy(GameObject)
public void FastDestroy(GameObject sceneObject)
Parameters
sceneObject
GameObject
FastDestroy<T>(T)
public void FastDestroy<T>(T sceneObject) where T : Component
Parameters
sceneObject
T
Type Parameters
T
public GameObject FastInstantiate(Transform parent = null)
Parameters
parent
Transform
Returns
- GameObject
public GameObject FastInstantiate(Vector3 position, Quaternion rotation, Transform parent = null)
Parameters
position
Vector3
rotation
Quaternion
parent
Transform
Returns
- GameObject
public T FastInstantiate<T>(Transform parent = null) where T : Component
Parameters
parent
Transform
Returns
- T
Type Parameters
T
public T FastInstantiate<T>(Vector3 position, Quaternion rotation, Transform parent = null) where T : Component
Parameters
position
Vector3
rotation
Quaternion
parent
Transform
Returns
- T
Type Parameters
T
public bool Init(Transform rootTransform)
Parameters
rootTransform
Transform
Returns
- bool