"Serializedobject target has been destroyed. UnityEngine.GUIUtility:ProcessEvent(Int32,IntPtr)"

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);
    }

测试发现是删除此场景时报的错

你可能感兴趣的:(unity3d,个人文档)