Search Unity

Awake() Why does it always run on scene load?

Discussion in 'Editor & General Support' started by RandomCharacters, Jun 16, 2018.

  1. RandomCharacters

    RandomCharacters

    Joined:
    Nov 29, 2012
    Posts:
    262
    .
     
    Last edited: Jan 15, 2019
  2. Madgvox

    Madgvox

    Joined:
    Apr 13, 2014
    Posts:
    1,317
    Awake is called once per script instance. If you load the same scene twice, those are two different script instances, and thus they will each call their own Awake.