C# Class ObjectPool.ObjectPoolEntry, SimpleObjectPool

Mostrar archivo Open project: gazialankus/SimpleObjectPool Class Usage Examples

Public Properties

Property Type Description
Container Transform

Public Methods

Method Description
GetObjectFromPool ( bool onlyPooled ) : GameObject
Initialize ( Transform containerTransform ) : void
PoolObject ( GameObject obj ) : void

Pools the object specified. Will not be pooled if there is no prefab of that type.

Method Details

GetObjectFromPool() public method

public GetObjectFromPool ( bool onlyPooled ) : GameObject
onlyPooled bool
return GameObject

Initialize() public method

public Initialize ( Transform containerTransform ) : void
containerTransform Transform
return void

PoolObject() public method

Pools the object specified. Will not be pooled if there is no prefab of that type.
public PoolObject ( GameObject obj ) : void
obj GameObject /// Object to be pooled. ///
return void

Property Details

Container public_oe property

public Transform Container
return Transform