Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

unity check load scene

  void Start ()
     {
         // Create a temporary reference to the current scene.
         Scene currentScene = SceneManager.GetActiveScene ();
 
         // Retrieve the name of this scene.
         string sceneName = currentScene.name;
 
      
         }

void Update(){
     if (sceneName == "Example 1") 
         {
             // Do something...
         }
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: what is data encapsulation c# 
Csharp :: rotate object to mouse position unity 
Csharp :: c# repeat x times 
Csharp :: c sharp array to list 
Csharp :: c# mongodb connection 
Csharp :: c# check if string is only letters and numbers 
Csharp :: unity cast float to int 
Csharp :: c# winforms textbox cursor position 
Csharp :: c# linq to dictionary 
Csharp :: button not working unity 
Csharp :: c# split text by spaces 
Csharp :: C# get string as stream 
Csharp :: how do i make multiplayer in unity 
Csharp :: consecutive numbers c# 
Csharp :: c# array map 
Csharp :: unity how get random color to material 
Csharp :: convert text to number c# 
Csharp :: get input c# 
Csharp :: how to display an image url in c# picturebox 
Csharp :: how to name GameObject in c# 
Csharp :: maximize window c# console 
Csharp :: c# skip following code in loop 
Csharp :: add object to list c# 
Csharp :: unity joystick movement 2d 
Csharp :: unity find gameobject 
Csharp :: create list with values c# 
Csharp :: c# unity detect any keyboard input but not mouse input 
Csharp :: unity how to get a child from a gameobject 
Csharp :: remove index from array c# 
Csharp :: how to verify the scene unity 
ADD CONTENT
Topic
Content
Source link
Name
6+5 =