What is the difference between Awake and Start in Unity?

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ต.ค. 2024

ความคิดเห็น • 4

  • @vinodravisankar5559
    @vinodravisankar5559 3 ปีที่แล้ว

    Awake is not called when the gameobject is disabled. More info is available in this article vionixstudio.com/2020/11/06/unity-awake-vs-start-what-is-the-difference/

    • @nathanjenkins9240
      @nathanjenkins9240  3 ปีที่แล้ว +2

      True the awake function is not called until the gameobject is enabled but I don't claim that here. I've disabled the script component not the gameobject itself in this example

  • @y01cu_yt
    @y01cu_yt 2 ปีที่แล้ว

    Thanks.

  • @pcbuilderindia4104
    @pcbuilderindia4104 2 ปีที่แล้ว

    Superb!