Spawn Object issue

Hello all!

I have a problem with spawning objects. I am making a game using the Unity tutorial and use an example for spawning background.
I decided to create different levels, so I made a duplicate of my scene, duplicated my background and edited it. After I finished editing, I changed source object for background and it stars to create hundreds of my background every frame.
It happens only with new object, when I change it to old object it works fine. I have no idea what to do=((
If anyone has any idea, please, help me.
I’ll really appreciate.

It’s impossible for us to say without seeing the code.

Though you should be taking a swing at debugging this first on your end before asking for help.

The Unity docs are very dry: Unity - Manual: Debug C# code in Unity though there’s lots of videos you can find on Youtube to get you started with the basics of debugging.

1 Like