static void OnSceneGUI(SceneView sceneView) { GridOnSceneGUI(sceneView); ChiselOutlineRenderer.Instance.OnSceneGUI(sceneView); var dragArea = ChiselSceneBottomGUI.OnSceneGUI(sceneView); ChiselEditModeGUI.OnSceneGUI(sceneView, dragArea); ChiselDragAndDropManager.Instance.OnSceneGUI(sceneView); ChiselClickSelectionManager.Instance.OnSceneGUI(sceneView); }
static void OnSceneGUI(SceneView sceneView) { var dragArea = ChiselGUIUtility.GetRectForEditorWindow(sceneView); GridOnSceneGUI(sceneView); ChiselEditModeGUI.OnSceneGUI(sceneView, dragArea); ChiselOutlineRenderer.Instance.OnSceneGUI(sceneView); ChiselSceneBottomGUI.OnSceneGUI(sceneView); ChiselDragAndDropManager.Instance.OnSceneGUI(sceneView); ChiselClickSelectionManager.Instance.OnSceneGUI(sceneView); }
static void OnBeforeSceneGUI(SceneView sceneView) { var prevSkin = GUI.skin; GUI.skin = ChiselSceneGUIStyle.GetSceneSkin(); try { ChiselSceneGUIStyle.Update(); ChiselSceneBottomGUI.OnSceneGUI(sceneView); } finally { GUI.skin = prevSkin; } }