public override void OnGUI(Rect rect) { GUILayout.BeginVertical(); GUILayout.FlexibleSpace(); if (peeked == null) { this.height = 48; GUILayout.Label("NOT FOUND."); } else { if (refName != null) { GUILayout.Label(refName, EditorStyles.boldLabel); } GUILayout.Space(6); GUILayout.Label(peeked.name); selector.DrawLayout(peeked, true); while (selector.GetRect().height >= height * 0.7f) { height += 10; } } GUILayout.FlexibleSpace(); GUILayout.EndVertical(); }