- Home /
How to set minimum height for EditorGUILayout scroll view?
Hi guys
I'm using a scroll view to present a List of items in the inspector. Unfortunately this is easily reduced to a couple lines tall when there are multiple components being displayed in the inspector:
As you can see, this makes it very uncomfortable for dealing with large quantities of data.
Is there any way I can set the minimum height for the scroll view?
Thanks,
Ves
Comment
Best Answer
Answer by VesuvianPrime · Apr 15, 2014 at 07:37 PM
Well, for anyone who comes across this in the future, my solution was:
EditorGUILayout.BeginVertical(GUILayout.MinHeight(128.0f));
// Scrollview, other GUI widgets, etc
EditorGUILayout.EndVertical();
Your answer
Follow this Question
Related Questions
How to allocate layout region inside the inspector? 1 Answer
Inspector look changed 0 Answers
ReImport in c# of GameObjects only for Scene Objects, not assets? 1 Answer
Cogwheel icon in inspector 2 Answers
Stretchable textures in Editor 0 Answers