Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Question OnEnable, Awake, Start

Discussion in 'Editor & General Support' started by ILonion, Nov 15, 2023.

  1. ILonion

    ILonion

    Joined:
    Oct 26, 2015
    Posts:
    73
    playmode start run like this:
    - OnEnable
    - Awake
    - OnEnable
    - Start
    (by debug.log)

    2 questions:
    1. why OnEnable twice ?
    2. order execute above (onenable first) - is guaranteed?
     
  2. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    8,647
    ILonion and halley like this.