C# Class ResourceManager, LoopScrollRect

ファイルを表示 Open project: qiankanglai/LoopScrollRect Class Usage Examples

Public Methods

Method 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 method

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
return GameObject

InitPool() public method

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

ReturnObjectToPool() public method

Return obj to the pool
public ReturnObjectToPool ( GameObject go ) : void
go GameObject
return void

ReturnTransformToPool() public method

Return obj to the pool
public ReturnTransformToPool ( Transform t ) : void
t Transform
return void