C# Class ObjectPool.ObjectPoolEntry, SimpleObjectPool

Afficher le fichier Open project: gazialankus/SimpleObjectPool Class Usage Examples

Méthodes publiques

Свойство Type Description
Container Transform

Méthodes publiques

Méthode 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 méthode

public GetObjectFromPool ( bool onlyPooled ) : GameObject
onlyPooled bool
Résultat GameObject

Initialize() public méthode

public Initialize ( Transform containerTransform ) : void
containerTransform Transform
Résultat void

PoolObject() public méthode

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. ///
Résultat void

Property Details

Container public_oe property

public Transform Container
Résultat Transform