protected virtual void ShowButton(Rect r) { if (SceneHierarchyWindow.s_Styles == null) { SceneHierarchyWindow.s_Styles = new SceneHierarchyWindow.Styles(); } this.m_Locked = GUI.Toggle(r, this.m_Locked, GUIContent.none, SceneHierarchyWindow.s_Styles.lockButton); }
private void OnGUI() { if (SceneHierarchyWindow.s_Styles == null) { SceneHierarchyWindow.s_Styles = new SceneHierarchyWindow.Styles(); } this.m_TreeViewKeyboardControlID = GUIUtility.GetControlID(FocusType.Keyboard); this.OnEvent(); Rect rect = new Rect(0f, 0f, base.position.width, base.position.height); Event current = Event.current; if (current.type == EventType.MouseDown && rect.Contains(current.mousePosition)) { this.treeView.EndPing(); } this.DoToolbar(); float searchPathHeight = this.DoSearchResultPathGUI(); this.DoTreeView(searchPathHeight); this.ExecuteCommands(); this.HandleContextClick(); }
private void OnGUI() { if (SceneHierarchyWindow.s_Styles == null) { SceneHierarchyWindow.s_Styles = new SceneHierarchyWindow.Styles(); } this.DetectUserInteraction(); this.SyncIfNeeded(); this.m_TreeViewKeyboardControlID = GUIUtility.GetControlID(FocusType.Keyboard); this.OnEvent(); Rect rect = new Rect(0.0f, 0.0f, this.position.width, this.position.height); Event current = Event.current; if (current.type == EventType.MouseDown && rect.Contains(current.mousePosition)) { this.treeView.EndPing(); this.SetAsLastInteractedHierarchy(); } this.DoToolbar(); this.DoTreeView(this.DoSearchResultPathGUI()); this.ExecuteCommands(); }
private void OnGUI() { if (SceneHierarchyWindow.s_Styles == null) { SceneHierarchyWindow.s_Styles = new SceneHierarchyWindow.Styles(); } this.m_TreeViewKeyboardControlID = GUIUtility.GetControlID(FocusType.Keyboard); this.OnEvent(); Rect rect = new Rect(0f, 0f, base.position.width, base.position.height); Event current = Event.current; if (current.type == EventType.MouseDown && rect.Contains(current.mousePosition)) { this.treeView.EndPing(); } this.DoToolbar(); float searchPathHeight = this.DoSearchResultPathGUI(); this.DoTreeView(searchPathHeight); this.ExecuteCommands(); this.HandleContextClick(); }
protected virtual void ShowButton(Rect r) { if (SceneHierarchyWindow.s_Styles == null) SceneHierarchyWindow.s_Styles = new SceneHierarchyWindow.Styles(); this.m_Locked = GUI.Toggle(r, this.m_Locked, GUIContent.none, SceneHierarchyWindow.s_Styles.lockButton); }
private void OnGUI() { if (SceneHierarchyWindow.s_Styles == null) SceneHierarchyWindow.s_Styles = new SceneHierarchyWindow.Styles(); this.DetectUserInteraction(); this.SyncIfNeeded(); this.m_TreeViewKeyboardControlID = GUIUtility.GetControlID(FocusType.Keyboard); this.OnEvent(); Rect rect = new Rect(0.0f, 0.0f, this.position.width, this.position.height); Event current = Event.current; if (current.type == EventType.MouseDown && rect.Contains(current.mousePosition)) { this.treeView.EndPing(); this.SetAsLastInteractedHierarchy(); } this.DoToolbar(); this.DoTreeView(this.DoSearchResultPathGUI()); this.ExecuteCommands(); }