C# Класс ResourceManager, LoopScrollRect

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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