Загрузка...

OnApplicationQuit() Function in Unity - Unity Scripting API MonoBehaviour Tutorial 11

Notes for You:: OnApplicationQuit() Function in Unity - Unity Scripting API MonoBehaviour Tutorial 11 - is called when user quits the game application. - is called when user stops play mode in the Unity Editor. Note: When user quits the game application first it loses focus and then quits. - is best for saving / persisting any game data. Ex: Saving how much time user has played the game. Example code: void OnApplicationQuit() { Debug.Log ("OnApplicationQuit"); Debug.Log (Time.time); } Note: Time.time returns total time since the start of game. ========================================= Follow the link for next video: Unity Scripting API MonoBehaviour 12 - OnDisable() Function in Unity https://youtu.be/3ehFnqMFPXg Follow the link for previous video: Unity Scripting API MonoBehaviour 10 - OnGUI() Function in Unity https://youtu.be/hjnaI9p8hBk ========================================= Unity Scripting API - MonoBehaviour Tutorials:- https://www.youtube.com/playlist?list=PLdE8ESr9Th_tLSOvCRbDyfhLAqVH7omOg ========================================= Watch My Other Useful Tutorials:- Unity C# Scripting Tutorials:- https://www.youtube.com/playlist?list=PLdE8ESr9Th_vfn7aSIzAkudVRTLntF18w Unity Scripting API - Introduction Tutorials:- https://www.youtube.com/playlist?list=PLdE8ESr9Th_tc4HPxXecXnU4GNbdo3EdA Unity Scripting API - Time Tutorials:- https://www.youtube.com/playlist?list=PLdE8ESr9Th_sjK0Ib2_HIVquaqef7Di9k Unity Scripting API - Transform Tutorials:- https://www.youtube.com/playlist?list=PLdE8ESr9Th_s2iBzpSHck5ICInQWAKRyw Unity Scripting API - Input Tutorials:- https://www.youtube.com/playlist?list=PLdE8ESr9Th_so4JWarKmoLbnnIkoim_uH Unity Google VR Tutorials:- https://www.youtube.com/playlist?list=PLdE8ESr9Th_u8ke1_Qj5af741OBstc3yi ========================================= ► Subscribe to our YouTube channel: https://www.youtube.com/chidrestechtutorials ► Visit our Website: https://www.chidrestechtutorials.com ========================================= Hash Tags:- #ChidresTechTutorials #UnityScripting #UnityScriptingTutorial #UnityScriptingAPI #Unity

Видео OnApplicationQuit() Function in Unity - Unity Scripting API MonoBehaviour Tutorial 11 автора Unrevealed Operating System
Страницу в закладки Мои закладки
Все заметки Новая заметка Страницу в заметки