![]() | GameObjectPoolT Class |
Namespace: RavingBots.MagicGestures.Utils.ObjectPooling
public class GameObjectPool<T> : IObjectPool where T : MonoBehaviour, IPooledObject
The GameObjectPoolT type exposes the following members.
Name | Description | |
---|---|---|
![]() | GameObjectPoolT |
Create a new pool with the given prefab and initial size.
|
Name | Description | |
---|---|---|
![]() | Precache |
Prepare some instances before they're actually needed.
|
![]() | RevokeInstance |
Return an instance to the pool.
|
![]() | TakeInstance |
Take an instance out of the pool.
|
Name | Description | |
---|---|---|
![]() | _container |
The scene container that keeps the created objects.
|
![]() | _prefab |
The prefab used to create new instances.
|
![]() | _queue |
The queue of cached instances.
|