Unity.ObjectPooling
No description available
Install / Use
/learn @grashaar/Unity.ObjectPoolingREADME
Unity Object Pooling
Changelog
1.5.0
- Support synchronous pooling for classes under
UnityEngine.AddressableAssets.Poolingnamespace (available when Addressables 1.17 or higher is installed) - Spawners will no longer require a pooler manager to work
- Support custom instance destroying for some pool class, implement via IDestroyHandler interface
- Various improvements and corrections
1.4.0
- Upgrade
Unity Supplementspackage to version2.5.3 - Change the namespace of pooling classes
- Restructure the package
1.3.0
- Upgrade
Unity Supplementspackage to version2.3.1 - Remove
IPool<T>andPool<T>since they are existing in theUnity Supplementspackage - Add
IKeyedPool<T>,IAsyncKeyedPool<T>interfaces - Refactor async methods of
ComponentPoolandGameObjectPoolintoAsyncComponentPoolandAsyncGameObjectPool - Remove
BehaviourPoolsince it is redundant - Pools now implement either keyed or no-keyed interface, not both
ActiveItemsproperty is renamedActiveObjects
Dependencies
Notes
- Automatically switch to UniTask if the package is present.
- Automatically enable Addressables-related classes if the package is present.
- Automatically use Unity Addressables Manager if the package is present.
API
System.Collections.Pooling
UnityEngine
UnityEngine.Pooling
- ComponentPool<T>
- AsyncComponentPool<T>
- GameObjectPool
- AsyncGameObjectPool
- GameObjectPooler
- GameObjectPoolerManager
- ComponentSpawner
- GameObjectSpawner
