public void Cleanup() { #if UNITY_EDITOR UnityEditor.SceneView.onSceneGUIDelegate -= OnSceneGUI; GameViewEventCatcher.Cleanup(); #endif }
public static void Build() { Cleanup(); var go = new GameObject("__GameViewEventCatcher"); go.hideFlags = HideFlags.HideAndDontSave; s_Instance = go.AddComponent <GameViewEventCatcher>(); }
public void Build() { #if UNITY_EDITOR UnityEditor.SceneView.onSceneGUIDelegate -= OnSceneGUI; UnityEditor.SceneView.onSceneGUIDelegate += OnSceneGUI; GameViewEventCatcher.Build(); #endif }