Spawning game objects from object of same type (SOLVED)

My explosion game object has a factory in it to spawn further explosions. When I attempt to build the project I get an error.

Is this a bug or is spawning game objects from within another game object of the same type not allowed?

image

Did you report it via the Report button?

I just realised that it’s never been possible to do what you are doing. The old editor allows you to set a reference loop but it will crash when building and running. We should give you a better error message in the new editor though.

You should be able to move the factory component elsewhere to fix your problem.

2 Likes

Thanks @britzl. I created a ‘parent’ object to spawn all the explosion objects and it works fine now.

2 Likes