public override void OnToolGUI(EditorWindow window) { if (lastSelectedTool == null || lastSelectedTool != this) { if (lastSelectedTool != null) { lastSelectedTool.OnDeactivate(); } lastSelectedTool = this; OnActivate(); } var sceneView = window as SceneView; var dragArea = sceneView.position; dragArea.position = Vector2.zero; ChiselOptionsOverlay.AdditionalSettings = null; ChiselOptionsOverlay.SetTitle(OptionsTitle); OnSceneGUI(sceneView, dragArea); ChiselOptionsOverlay.Show(); ChiselToolsOverlay.Show(); ChiselSnappingOptionsOverlay.Show(); }
public static void ShowDefaultOverlay() { if (!haveNodeSelection) { return; } ChiselOptionsOverlay.AdditionalSettings = null; ChiselOptionsOverlay.Show(); ChiselToolsOverlay.Show(); ChiselSnappingOptionsOverlay.Show(); }