Answers for "unity how to see what scen you are in"

C#
6

unity how to see what scen you are in

void Update()
     {
     if (SceneManager.GetActiveScene () == SceneManager.GetSceneByName ("scene1")) 
         {
         SceneManager.LoadScene ("scene2");
         }
 
  else if (SceneManager.GetActiveScene () == SceneManager.GetSceneByName ("scene2"))
         {
         SceneManager.LoadScene ("scene1");
         }
     }
Posted by: Guest on January-17-2020

Code answers related to "unity how to see what scen you are in"

C# Answers by Framework

Browse Popular Code Answers by Language