UnityCommon-ObjectPooling
Object pooling system for Unity that streamlines instance management and improves performance. Provides a simple API for spawning and despawning game objects with minimal overhead, reducing memory allocation and garbage collection during gameplay. Supports both static pool methods and extension methods for intuitive integration into existing projects.
com.wolf-org.object-pooling 
Install via UPM
Add to Unity Package Manager using this URL
https://www.pkglnk.dev/object-pooling.git README Markdown
Copy this to your project's README.md
## Installation
Add **UnityCommon-ObjectPooling** to your Unity project via Package Manager:
1. Open **Window > Package Manager**
2. Click **+** > **Add package from git URL**
3. Enter:
```
https://www.pkglnk.dev/object-pooling.git
```
[](https://www.pkglnk.dev/pkg/object-pooling)README
What
- Object-Pooling for game unity is very easy to use
How To Install
Add the line below to Packages/manifest.json
for version 1.0.1
"com.wolf-org.object-pooling":"https://github.com/unity-package/object-pooling-unity.git#1.0.1",
Use
- Init Pool
Pool.InitPool();
- Spawn/DeSpawn Object
public GameObject prefab;
private GameObject ins;
void SpawnIns()
{
ins = Pool.Spawn(prefab);
}
void DeSpawnIns()
{
Pool.DeSpawn(ins);
}
Or
public GameObject prefab;
private GameObject ins;
void SpawnIns()
{
ins = prefab.Spawn();
}
void DeSpawnIns()
{
ins.DeSpawn();
}
No comments yet. Be the first!