Hey guys, Simple problem, create a sphere and attach a script to it with the following code.. As you see, I'm trying to instantiate "One" ball on the Start routine.. What ends up happening is infinite ball spawning.. Really odd, that should only instantiate one ball no? This happens in 2018.1 and .2 Code (CSharp): public class BallScript : MonoBehaviour { private GameObject Ball; // Use this for initialization void Start() { Ball = GameObject.Find("Sphere"); Instantiate(Ball, new Vector3(0, 1, 0), Quaternion.identity); } // Update is called once per frame void Update () { } }
If BallScript is on your ball then your BallScript is spawning a ball, which has a BallScript, which is spawning a ball, which has a BallScript, which is spawning a ball...