- Home /
Question by
Vardan Meliksetyan · Jul 03, 2014 at 08:28 AM ·
functionlevelclose
Level close function
Hello developers. I look unity docs there I find for application close 2 functions.
OnApplicationQuit:
This function is called on all game objects before the application is quit. In the editor it is called when the user stops playmode. In the web player it is called when the web view is closed.
OnDisable:
This function is called when the behaviour becomes disabled or inactive.
http://docs.unity3d.com/Manual/ExecutionOrder.html
I need function or logic before one level to other level before close function or logic. Have somebody idea or solution. Thanks
Comment
Best Answer
Answer by Vardan Meliksetyan · Jul 04, 2014 at 06:46 AM
I didn't find other function so OnDisable() help me in this time