Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

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");
         }
     }
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# get username 
Csharp :: Unity Make a 2D object look at the mouse position 
Csharp :: c# get user directory 
Csharp :: how to detect mouse click in c# 
Csharp :: c# random number 
Csharp :: loop through an enum c# 
Csharp :: check if string is email c# 
Csharp :: make winforms full-screen c# 
Csharp :: Unity c# how to restart the level 
Csharp :: c# copy file to directory 
Csharp :: save file with unique name c# 
Csharp :: c# how-to-download-image-from-url 
Csharp :: unity set object scale 
Csharp :: url()- full() laravel 
Csharp :: unity 3d camera rotate up and down 
Csharp :: regex for email c# 
Csharp :: check last character of a string c# 
Csharp :: convert timestamp to datetime c# code 
Csharp :: exit application wpf 
Csharp :: isletter c# 
Csharp :: query parameter c# controller 
Csharp :: c# long to int 
Csharp :: get random number c# 
Csharp :: how to populate listbox using list<t c# 
Csharp :: unity stop all audio 
Csharp :: base64 bit string to pdf c# 
Csharp :: unity move character 
Csharp :: scaffold db ef core 
Csharp :: how to usefor loop in c# 
Csharp :: add items to listbox from text file c# 
ADD CONTENT
Topic
Content
Source link
Name
7+1 =