Object Pooler Implementation
I am having hard time to figure a very simple thing -
How to modify my single player object pooler code, into the one using Fusion's native object pooler for enabling/disabling game objects for all clients without destroying and instantiating.
I've looked into the docs for some time but it's unclear to me and it seems I'm breaking my head around a very simple manner.
I am attaching my original, non-network object pooler script, I would highly appreciate if you can help me transit this into a Fusion object pooler.
Here's the code I am using:
protected virtual void InitializePool()
for (int i = 0; i < poolSize; i++)
obj = Instantiate(objectToPool, this.transform);
public virtual GameObject PoolObject()
for (int i = 0; i < objectsPool.Count; i++)
if (objectsPool[i].activeInHierarchy == false)
Thanks in advance,