Search Unity

Instantiate vs New GameObject()

Discussion in 'Editor & General Support' started by J9383731, Jan 15, 2018.

  1. J9383731

    J9383731

    Joined:
    Nov 5, 2011
    Posts:
    26
    question deleted. i was able to answer my own question.
     
    Last edited: Jan 16, 2018
  2. EZaca

    EZaca

    Joined:
    Dec 9, 2017
    Posts:
    32
    You could had just replied to your question. This is the section link I access about the subject that has no answer. The first, the answer is not related to the question. Your post is showing up in second result of Google. Of course I'll be able to realize the difference by myself sooner or later, but that breaks the spirit of community. I hope my comment does not feel harsh, it should be read more like a hint.
     
  3. EZaca

    EZaca

    Joined:
    Dec 9, 2017
    Posts:
    32
    I don't know if I got it right, but Instantiate seems to clone another object from the scene or prefab, with its components and all, while
    new Game Object()
    ` is used to create a new empty GameObject. Both get added to the scene, so each one have its own case.
     
    Arkon89 likes this.