unity reload current scene code example

Example 1: reload scene unity

using UnityEngine.SceneManagement;

	SceneManager.LoadScene(SceneManager.GetActiveScene().name);

Example 2: reload current scene unity

Scene scene = SceneManager.GetActiveScene();
SceneManager.LoadScene(scene.name);

Example 3: how to reload current scene unity

using UnityEngine.SceneManagement;

	SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex);

Example 4: unity how to reload a scene

SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex);

Example 5: unity reload current scene

using UnityEngine.SceneManagement;
SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex);

Tags:

Misc Example