Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

Unity difference between start and awake?

user-image
Question added by Ubaid Zahoor , Backend Developer , Tremau
Date Posted: 2017/11/06
Ahmed Himmow
by Ahmed Himmow , Unity Game Developer , Sand Forge Games

In the Unity Editor, the two can function similarily, with the exception of Start being called everytime the script is re-enabled. In a published game, Awake would be called whenever a scene is loaded. Start is called at a later stage and only if the script containing the code for it is enabled.I highly recommend checking this page. It should be useful as a reference for how and when event functions, like Awake and Start, work.

Deleted user
by Deleted user

Start() is called everytime your script is enabled, Awake() is called even if your script is disabled, also Awake() is called before Start() method.

More Questions Like This