Unity 3D Developer Question: Download Unity 3D Developer PDF

Can you arrange The Event Functions Listed Below In The Order In Which They Will Be Invoked When An Application Is Closed:
☛ Update()
☛ Ongui()
☛ Awake()
☛ Ondisable()
☛ Start()
☛ Lateupdate()
☛ Onenable()
☛ Onapplicationquit()
☛ Ondestroy()

The correct execution order of these event functions when an application closes is as follows:

Tweet Share WhatsApp

Answer:

☛ Awake()
☛ OnEnable()
☛ Start()
☛ Update()
☛ LateUpdate()
☛ OnGUI()
☛ OnApplicationQuit()
☛ OnDisable()
☛ OnDestroy()

Note: You might be tempted to disagree with the placement of OnApplicationQuit() in the above list, but it is correct which can be verified by logging the order in which call occurs when your application closes.

Download Unity 3D Developer PDF Read All 35 Unity 3D Developer Questions
Previous QuestionNext Question
Please explain how Do You Feel About Crunching?Tell me the Issue With The Code Below And Provide An Alternative Implementation That Would Correct The Problem.
Using Unityengine;
Using System.collections;
Public Class Test : Monobehaviour {
Void Start () {
Transform.position.x = 10;
}
}?