private void DrawSearch(Rect rect) { GUI.Label(rect, "", EditorStyles.toolbar); searchField.OnGUI(rect.Zoom(AnchorType.MiddleCenter, -2)); if (list.UpdateFilter(searchField.value)) { hoverIndex = 0; scroll = Vector2.zero; } }
public override void OnGUI() { this.Label("", GUILayout.Width(width)); s.OnGUI(GUILayoutUtility.GetLastRect()); }