Publisher | Midnite Oil Software |
---|---|
File size | 721.95kB |
Number of files | 26 |
Latest version | 1.3.1 |
Latest release date | 2023-08-28 12:51:12 |
First release date | 2022-08-02 10:36:15 |
Supported Unity versions | 2018.4.2 or higher |
The Object Pool Manager is a lightweight, easy-to-use object pooler that makes it simpler than ever to implement object pooling in your game. It's designed specifically to work with prefabs which can be defined as simply as SerializedField of type GameObject.
Simply call the static ObjectPoolManager.SpawnGameObject(prefab) method and you are guaranteed to get an instance of the correct prefab type.
Calling ObjectPoolManager.DespawnGameObject(prefab) will deactive the object and add it to the appropriate pool.
The package is very lighweight and extremely performant. It is ideal for games which Instantiate/Destroy lots of objects repeatedly.
After being imported into your project the ObjectPoolManager will automatically load when your game starts and will persist across scenes.