Exemplo n.º 1
0
        public void Cleanup()
        {
#if UNITY_EDITOR
            UnityEditor.SceneView.onSceneGUIDelegate -= OnSceneGUI;
            GameViewEventCatcher.Cleanup();
#endif
        }
Exemplo n.º 2
0
            public static void Build()
            {
                Cleanup();
                var go = new GameObject("__GameViewEventCatcher");

                go.hideFlags = HideFlags.HideAndDontSave;
                s_Instance   = go.AddComponent <GameViewEventCatcher>();
            }
Exemplo n.º 3
0
        public void Build()
        {
#if UNITY_EDITOR
            UnityEditor.SceneView.onSceneGUIDelegate -= OnSceneGUI;
            UnityEditor.SceneView.onSceneGUIDelegate += OnSceneGUI;
            GameViewEventCatcher.Build();
#endif
        }