C# Class ResourceManager, LoopScrollRect

Afficher le fichier Open project: qiankanglai/LoopScrollRect Class Usage Examples

Méthodes publiques

Méthode Description
GetObjectFromPool ( string poolName, bool autoActive = true, int autoCreate ) : GameObject

Returns an available object from the pool OR null in case the pool does not have any object available & can grow size is false.

InitPool ( string poolName, int size, PoolInflationType type = PoolInflationType.DOUBLE ) : void
ReturnObjectToPool ( GameObject go ) : void

Return obj to the pool

ReturnTransformToPool ( Transform t ) : void

Return obj to the pool

Method Details

GetObjectFromPool() public méthode

Returns an available object from the pool OR null in case the pool does not have any object available & can grow size is false.
public GetObjectFromPool ( string poolName, bool autoActive = true, int autoCreate ) : GameObject
poolName string
autoActive bool
autoCreate int
Résultat GameObject

InitPool() public méthode

public InitPool ( string poolName, int size, PoolInflationType type = PoolInflationType.DOUBLE ) : void
poolName string
size int
type PoolInflationType
Résultat void

ReturnObjectToPool() public méthode

Return obj to the pool
public ReturnObjectToPool ( GameObject go ) : void
go GameObject
Résultat void

ReturnTransformToPool() public méthode

Return obj to the pool
public ReturnTransformToPool ( Transform t ) : void
t Transform
Résultat void