unity what happens when scene is reloaded code example
Example 1: reload scene unity
using UnityEngine.SceneManagement;
SceneManager.LoadScene(SceneManager.GetActiveScene().name);
Example 2: unity how to reload a scene
SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex);