C# 클래스 ResourceManager, LoopScrollRect

파일 보기 프로젝트 열기: qiankanglai/LoopScrollRect 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

GetObjectFromPool() 공개 메소드

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
리턴 GameObject

InitPool() 공개 메소드

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

ReturnObjectToPool() 공개 메소드

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

ReturnTransformToPool() 공개 메소드

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