Class SpawnManager
Inheritance
object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
SpawnManager
Assembly: Dew.Core.dll
Syntax
public class SpawnManager : ManagerBase<SpawnManager>, ILogicUpdate
Fields
activeInstanceToPool
Declaration
public Dictionary<GameObject, ObjectPoolItem> activeInstanceToPool
Field Value
| Type |
Description |
| System.Collections.Generic.Dictionary<TKey, TValue><UnityEngine.GameObject, ObjectPoolItem> |
|
pool
Declaration
public Dictionary<GameObject, ObjectPoolItem> pool
Field Value
| Type |
Description |
| System.Collections.Generic.Dictionary<TKey, TValue><UnityEngine.GameObject, ObjectPoolItem> |
|
showPoolInfo
Declaration
[NonSerialized]
public bool showPoolInfo
Field Value
usePooling
Declaration
[NonSerialized]
public bool usePooling
Field Value
Methods
Awake()
Declaration
protected override void Awake()
Overrides
ManagerBase<SpawnManager>.Awake()
Declaration
public static T Create<T>(T prefab, Vector3 position, Quaternion rotation, Transform parent) where T : Object
Parameters
| Type |
Name |
Description |
| T |
prefab |
|
| UnityEngine.Vector3 |
position |
|
| UnityEngine.Quaternion |
rotation |
|
| UnityEngine.Transform |
parent |
|
Returns
Type Parameters
Create<T>(T, Vector3, Quaternion)
Declaration
public static T Create<T>(T prefab, Vector3 position, Quaternion rotation) where T : Object
Parameters
| Type |
Name |
Description |
| T |
prefab |
|
| UnityEngine.Vector3 |
position |
|
| UnityEngine.Quaternion |
rotation |
|
Returns
Type Parameters
Destroy(GameObject)
Declaration
public static void Destroy(GameObject gobj)
Parameters
| Type |
Name |
Description |
| UnityEngine.GameObject |
gobj |
|
InvalidateInstance(Component)
Invalidate an instance from pool, preventing it from being reused.
Declaration
public static void InvalidateInstance(Component activeInstance)
Parameters
| Type |
Name |
Description |
| UnityEngine.Component |
activeInstance |
|
InvalidateInstance(GameObject)
Invalidate an instance from pool, preventing it from being reused.
Declaration
public static void InvalidateInstance(GameObject activeInstance)
Parameters
| Type |
Name |
Description |
| UnityEngine.GameObject |
activeInstance |
|
Implements
Extension Methods