private void OnObjectGridGUI() { this.InitIfNeeded(); if (this.m_Styles == null) { this.m_Styles = new ObjectSelector.Styles(); } if (this.m_EditorCache == null) { this.m_EditorCache = new EditorCache(EditorFeatures.PreviewGUI); } this.ResizeBottomPartOfWindow(); Rect position = base.position; EditorPrefs.SetFloat("ObjectSelectorWidth", position.width); EditorPrefs.SetFloat("ObjectSelectorHeight", position.height); GUI.BeginGroup(new Rect(0f, 0f, base.position.width, base.position.height), GUIContent.none); this.m_ListArea.HandleKeyboard(false); this.SearchArea(); this.GridListArea(); this.PreviewArea(); GUI.EndGroup(); GUI.Label(new Rect(base.position.width * 0.5f - 16f, base.position.height - this.m_PreviewSize + 2f, 32f, this.m_Styles.bottomResize.fixedHeight), GUIContent.none, this.m_Styles.bottomResize); }
private void OnObjectGridGUI() { this.InitIfNeeded(); if (this.m_Styles == null) { this.m_Styles = new ObjectSelector.Styles(); } if (this.m_EditorCache == null) { this.m_EditorCache = new EditorCache(EditorFeatures.PreviewGUI); } this.ResizeBottomPartOfWindow(); Rect position = base.position; EditorPrefs.SetFloat("ObjectSelectorWidth", position.width); EditorPrefs.SetFloat("ObjectSelectorHeight", position.height); GUI.BeginGroup(new Rect(0f, 0f, base.position.width, base.position.height), GUIContent.none); this.m_ListArea.HandleKeyboard(false); this.SearchArea(); this.GridListArea(); this.PreviewArea(); GUI.EndGroup(); GUI.Label(new Rect(base.position.width * 0.5f - 16f, base.position.height - this.m_PreviewSize + 2f, 32f, this.m_Styles.bottomResize.fixedHeight), GUIContent.none, this.m_Styles.bottomResize); }