void Start () {
SceneManager.SetActiveScene(SceneManager.GetSceneAt(1));
SceneManager.activeSceneChanged += SceneManager_activeSceneChanged;
}
private void SceneManager_activeSceneChanged(Scene arg0, Scene arg1)
{
Debug.Log(arg0.name + " " + arg1.name);
}
测试发现是删除此场景时报的错