GorkaGames
Member
Hi,
I'm using your Pool System for many Instantiates on my game.
But when I try to add the new instantiated GameObject to same parent of my Hicherarchy It doesn't work. It always add to your Pool System Parent.
On the other hand if I use Unity GameObject.Instantited it works fine and the new gameobject is child of my parent:
GameObject splash = GameObject.Instantiate(splashBig, transform.position, transform.rotation);
splash.transform.parent = splashSailing.transform;
Any ideas? Thanks
I'm using your Pool System for many Instantiates on my game.
But when I try to add the new instantiated GameObject to same parent of my Hicherarchy It doesn't work. It always add to your Pool System Parent.
On the other hand if I use Unity GameObject.Instantited it works fine and the new gameobject is child of my parent:
GameObject splash = GameObject.Instantiate(splashBig, transform.position, transform.rotation);
splash.transform.parent = splashSailing.transform;
Any ideas? Thanks