public static void ClearDevConsole() { Extras.ClearDeveloperConsole(); }
protected override void OnSceneGUI(SceneView view) { var ev = Event.current; if (ev.isMouse) { if (ev.type == EventType.MouseUp && lastDown == ev.mousePosition) { Tools.viewTool = ViewTool.None; Extras.OpenSamplePopup(); ev.Use(); } else if (ev.type == EventType.MouseDown && Prefs.RightClickSample) { lastDown = ev.button == 1 ? ev.mousePosition : new Vector2(); } } if (ev.type == EventType.KeyUp && modifierOK(ev.modifiers)) { switch (ev.keyCode) { case Prefs.SelectParent: SelectOrMakeParent(); break; case Prefs.SelectPrev: SelectOrGroupPrev(); break; case Prefs.SelectNext: SelectOrGroupNext(); break; case Prefs.SelectNone: SelectNone(); break; case Prefs.RemoveComp: Extras.OpenRemoveComponentDialog(); break; case Prefs.AddObject: if (ev.shift) { SelectParent(Selection.GetTransforms(SelectionMode.ExcludePrefab)); } Extras.OpenAddGameObjectDialog(); break; case Prefs.SetGizmo: Extras.OpenObjectGizmoDialog(); break; case Prefs.SetActive: ToggleActive(); break; case Prefs.SetLock: ToggleLock(); break; case Prefs.SelectOperation: Extras.OpenSelectOperationDialog(!ev.shift); break; case Prefs.SelectLinked: Extras.OpenSelectLinkedDialog(); break; case Prefs.GoSeparateLayer: ToggleSeparateLayer(); break; case Prefs.OpenLayerMask: Extras.OpenLayerMaskDialog(); break; case Prefs.OpenLayout: Extras.OpenLayoutDialog(); break; case Prefs.OpenRename: Extras.OpenRenameDialog(); break; case Prefs.OpenQuery: AssetSearcherPopup.Show(ev.mousePosition); break; case Prefs.ClearConsole: Extras.ClearDeveloperConsole(); break; } } }