before Unity 5.3, I could do
Application.LoadLevel(Application.loadedLevel);
But now it\'s something weird with SceneManager. I\'ve read d
Use the new SceneManager and make sure you include the namespace UnityEngine.SceneManagement
using UnityEngine.SceneManagement;
public class Example
{
public void ReloadCurrentScene()
{
// get the current scene name
string sceneName = SceneManager.GetActiveScene().name;
// load the same scene
SceneManager.LoadScene(sceneName,LoadSceneMode.Single);
}
}