C# 클래스 UnityPooler.GameObjectPool

This class acts as an layer between the user and the PoolableGameObject class.
파일 보기 프로젝트 열기: GalvanicGames/unity-pooler

공개 프로퍼티들

프로퍼티 타입 설명
verboseLogging bool

공개 메소드들

메소드 설명
AddToPool ( this obj, int amount ) : void

Adds to the GameObject's object pool count.

AddToPoolWithObj ( GameObject objToAddTo, int amount ) : void

Adds to the prefab's or GameObject's object pool.

Get ( this obj ) : GameObject

Gets an object from this GameObject's object pool.

GetObj ( GameObject objToCreateFrom ) : GameObject

Receives a GameObject from objToCreateFrom's object pool.

IncrementPool ( this obj ) : void

Increments the GameObject's object pool count.

IncrementPoolWithObj ( GameObject objToInc ) : void

Increments the prefab's or GameObject's object pool.

PopulatePool ( this obj, int amount ) : void

Populates the GameObject's object pool up to the healAmount specified.

PopulatePoolCo ( this obj, int amount ) : IEnumerator

Populates the GameObject's object pool to the specified amount within an enumerator. Intended to work with https://github.com/GalvanicGames/unity-game-loader

PopulatePoolWithObj ( GameObject objToPopulate, int amount ) : void

Populates the prefab's or GameObject's object pool up to the specified count.

Release ( this obj ) : void

Releases the GameObject back to its object pool.

ReleaseObj ( GameObject objToRelease ) : void

Releases an object back to its object pool.

메소드 상세

AddToPool() 공개 정적인 메소드

Adds to the GameObject's object pool count.
public static AddToPool ( this obj, int amount ) : void
obj this
amount int Amount to add to the pool.
리턴 void

AddToPoolWithObj() 공개 정적인 메소드

Adds to the prefab's or GameObject's object pool.
public static AddToPoolWithObj ( GameObject objToAddTo, int amount ) : void
objToAddTo UnityEngine.GameObject The prefab or GameObject to add to.
amount int Amount to add.
리턴 void

Get() 공개 정적인 메소드

Gets an object from this GameObject's object pool.
public static Get ( this obj ) : GameObject
obj this
리턴 UnityEngine.GameObject

GetObj() 공개 정적인 메소드

Receives a GameObject from objToCreateFrom's object pool.
public static GetObj ( GameObject objToCreateFrom ) : GameObject
objToCreateFrom UnityEngine.GameObject The prefab or GameObject that we /// want a duplicated object of.
리턴 UnityEngine.GameObject

IncrementPool() 공개 정적인 메소드

Increments the GameObject's object pool count.
public static IncrementPool ( this obj ) : void
obj this
리턴 void

IncrementPoolWithObj() 공개 정적인 메소드

Increments the prefab's or GameObject's object pool.
public static IncrementPoolWithObj ( GameObject objToInc ) : void
objToInc UnityEngine.GameObject The prefab or GameObject to increment.
리턴 void

PopulatePool() 공개 정적인 메소드

Populates the GameObject's object pool up to the healAmount specified.
public static PopulatePool ( this obj, int amount ) : void
obj this
amount int Number to populate with.
리턴 void

PopulatePoolCo() 공개 정적인 메소드

Populates the GameObject's object pool to the specified amount within an enumerator. Intended to work with https://github.com/GalvanicGames/unity-game-loader
public static PopulatePoolCo ( this obj, int amount ) : IEnumerator
obj this
amount int
리턴 IEnumerator

PopulatePoolWithObj() 공개 정적인 메소드

Populates the prefab's or GameObject's object pool up to the specified count.
public static PopulatePoolWithObj ( GameObject objToPopulate, int amount ) : void
objToPopulate UnityEngine.GameObject The prefab or GameObject to populate.
amount int Number to populate with.
리턴 void

Release() 공개 정적인 메소드

Releases the GameObject back to its object pool.
public static Release ( this obj ) : void
obj this
리턴 void

ReleaseObj() 공개 정적인 메소드

Releases an object back to its object pool.
public static ReleaseObj ( GameObject objToRelease ) : void
objToRelease UnityEngine.GameObject Object to release
리턴 void

프로퍼티 상세

verboseLogging 공개적으로 정적으로 프로퍼티

public static bool verboseLogging
리턴 bool