Class PoolManager
Assembly: NeoFPS.dll
Syntax
public class PoolManager : NeoFpsManager<PoolManager>
Properties
defaultPoolSize
Declaration
public static int defaultPoolSize { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
poolIncrement
Declaration
public static int poolIncrement { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
Methods
CreatePool(PooledObject)
Declaration
public static void CreatePool(PooledObject prototype)
Parameters
CreatePool(PooledObject, Int32)
Declaration
public static void CreatePool(PooledObject prototype, int count)
Parameters
| Type |
Name |
Description |
| PooledObject |
prototype |
|
| System.Int32 |
count |
|
GetPooledObject<T>(PooledObject, Boolean)
Declaration
public static T GetPooledObject<T>(PooledObject prototype, bool activate = true)
where T : class
Parameters
| Type |
Name |
Description |
| PooledObject |
prototype |
|
| System.Boolean |
activate |
|
Returns
Type Parameters
GetPooledObject<T>(PooledObject, Vector3, Quaternion, Boolean)
Declaration
public static T GetPooledObject<T>(PooledObject prototype, Vector3 position, Quaternion rotation, bool activate = true)
where T : class
Parameters
| Type |
Name |
Description |
| PooledObject |
prototype |
|
| Vector3 |
position |
|
| Quaternion |
rotation |
|
| System.Boolean |
activate |
|
Returns
Type Parameters
GetPooledObject<T>(PooledObject, Vector3, Quaternion, Vector3, Boolean)
Declaration
public static T GetPooledObject<T>(PooledObject prototype, Vector3 position, Quaternion rotation, Vector3 scale, bool activate = true)
where T : class
Parameters
| Type |
Name |
Description |
| PooledObject |
prototype |
|
| Vector3 |
position |
|
| Quaternion |
rotation |
|
| Vector3 |
scale |
|
| System.Boolean |
activate |
|
Returns
Type Parameters
IsValid()
Declaration
public override bool IsValid()
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
OnValidate()
Declaration
protected void OnValidate()
ReturnObjectDelayed(PooledObject, Single)
Declaration
public static void ReturnObjectDelayed(PooledObject obj, float delay)
Parameters
ReturnObjectToPool(PooledObject)
Declaration
public static void ReturnObjectToPool(PooledObject obj)
Parameters
SetCurrentScenePoolInfo(ScenePoolHandler)
Declaration
public static void SetCurrentScenePoolInfo(ScenePoolHandler to)
Parameters