Question by
Geometrical · Oct 21, 2016 at 12:40 PM ·
guicustom-inspectorcustom inspectorcustom-editorcustomeditor
EditorGUILayout.BeginVertical("Box") not filling the inspector
Hi all, here's my problem:
I'm doing the following to create content side-by-side: EditorGUILayout.BeginHorizontal();
EditorGUILayout.BeginVertical("Box");
EditorGUILayout.LabelField("Left Side");
// other content
EditorGUILayout.EndVertical();
EditorGUILayout.BeginVertical("Box");
EditorGUILayout.LabelField("Right side");
// other content
EditorGUILayout.EndVertical();
EditorGUILayout.EndHorizontal();
The box is doing what it's supposed to- encapsulating the content in a box- but it doesn't expand in height and only grows to fill the space when I put more content inside...
Any clue to how to make the BeginVertical("Box") fill the space?
Comment
Your answer
Follow this Question
Related Questions
Objects in Custom Editor Resetting on Play 1 Answer
EditorGUILayout.Popup with an array of GameObject? 0 Answers
No type in ObjectField created in uxml (UIElements) 3 Answers
Use placeholder text in CustomEditor 0 Answers
Multiple custom editors for same type (or should I re-implement as UI?) 0 Answers