load scene unity
using UnityEngine.SceneManagement;
//Put this in whenever you want to load a scene
SceneManager.LoadScene("Scene name");using UnityEngine.SceneManagement
public class LoadScene : MonoBehavior
{
public string sceneToLoad = "Level2";
public void Start()
{
SceneManager.LoadScene(sceneToLoad);
}
}using UnityEngine.SceneManagement;
int buildIndex = 0;
//Load the scene with a build index
SceneManager.LoadScene(buildIndex);using UnityEngine.SceneManagement;
SceneManager.LoadScene('Scene');SceneManager.LoadScene("scene_01"); SceneManager.LoadScene (sceneBuildIndex:/*Put the number here*/);
Also in C#:
- see if two string arrays are equal c#
- Unity if object doens't exist
- C# how to get public key for InternalsVisibleTo
- double tryparse dot comma
- set decimal point c#
- ASP select box all states
- native-googlesignin configuration is null!?
- how to populate listbox using list<t> c#
- unity get scrollbar value
- kill child C#
- get all child gameObject of gameObject C#
- c# string to datetime
- uwp roaming data sample
- attribute usage c#
- find month number from date C#
- C# webclient immitate browser
- unity particle system color
- c# typeof
- run async methods within a sync process
- dynamic group by expression C#
- c# edit element in list
- unity get child
- c# console delay
- cc# sort list with list if ids