Avatar
Welcome, Guest

Topic: What is the best practice to use Scene Manager?

Posts: 2 Likes: 0

OFFLINE

From The last few versions of unity, mono developer keeps warning me that Application.LoadLevel() is obsolete, and asks me to use ‘SceneManager’ instead!
What is the best practice to use Scene Manager?

Posted : 1 year 5 months ago top

Posts: 4 Likes: 0

OFFLINE

Hi,
Yes, Application.LoadLevel() is obsolete from Unity version 5.3.
Add UnityEngine.SceneManagement; then in code use SceneManager.LoadScene();.
Or you can use UnityEngine.SceneManagement.SceneManager.LoadScene(); in your code.

Please go through the unity documentation link :
https://docs.unity3d.com/ScriptReference/SceneManagement.SceneManager.LoadScene.html

Posted : 1 year 5 months ago top

2 Item(s)

per page
Copyright 2017, GameGorillaz.
Game Gorillaz name and logo is registered trademark of Miracle Studios Pvt Ltd.