Instantiating and Destroying GameObjects in Unity

  • Object original - This is GameObject that the method takes and creates a clone. Usually, we use a Prefab of a GameObject here. To read more about Prefabs, click here!
  • Vector3 position - This argument defines the position in the scene. If left as a plain ‘,’ the object will instantiate on top of the parent GameObject.
  • Quaternion rotation - This is the object’s initial rotation. To read more about Quaternion, click here!



Aspiring and eager beginner Unity developer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store