ScriptReference/GUILayout.VerticalScope #192
Replies: 1 comment
-
|
VerticalScopes are a great way to add structure and grouping to controls, especially editor inspectors and custom windows. GUILayout.BeginVertical(EditorStyles.helpBox);
GUILayout.Label("Something here", EditorStyles.boldLabel);
GUILayout.EndVertical();Additionally you can create more interesting reusable VerticalScopes by subclassing VerticalScope, and then in the subclass adding drawing to the overridden constructor and CloseScope method. For example you could create a NamedVerticalScope class that takes a string which it displays in a nicely styled title. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
ScriptReference/GUILayout.VerticalScope
https://docs.unity3d.com/ScriptReference/GUILayout.VerticalScope.html
Beta Was this translation helpful? Give feedback.
All reactions