Hi! So I'm in the process of setting up pool manager for optimization. The documentation seems really straight forward, but things aren't working and I can't seem to figure out why.
Can anyone shed a light on this? I feel like I'm missing something trivial
Here's what I have:
SpawnPool Script on Gameobject, Pool called "Bullets", with 50 bullet prefabs
Spawn script, referencing "Bullets" and the bullet prefab
DeSpawn script on the bullet game object, referencing "Bullets" and the bullet prefab
What works:
- In runtime I can see all the bullets disabled and parented to the GO where the SpawnPool script was attached
What doesn't:
- Spawning a bullet creates a new clone in the pool, instead of using one of the disabled ones
- DeSpawning a bullet doesn't do anything, error says it wasn't found