unity get a scene with itw index code example Example: how to get scene index unity SceneManager.GetActiveScene().buildIndex;