HorizontalScope
Create a new HorizontalScope and begin the corresponding horizontal group.
Read time 4 minutesLast updated 10 days ago
Definition
- Type: Constructor
- Namespace: UnityEngine
- Assembly: UnityEngine.IMGUIModule
HorizontalScope(GUILayoutOption[])
Create a new HorizontalScope and begin the corresponding horizontal group.
public HorizontalScope(params GUILayoutOption[] options)
Parameters
An optional list of layout options that specify extra layouting properties. Any values passed in here will override settings defined by the .
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
styleAdditional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
HorizontalScope(GUIStyle, GUILayoutOption[])
Create a new HorizontalScope and begin the corresponding horizontal group.
public HorizontalScope(GUIStyle style, params GUILayoutOption[] options)
Parameters
The style to use for background image and padding values. If left out, the background is transparent.
An optional list of layout options that specify extra layouting properties. Any values passed in here will override settings defined by the .
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
styleAdditional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
HorizontalScope(string, GUIStyle, GUILayoutOption[])
Create a new HorizontalScope and begin the corresponding horizontal group.
public HorizontalScope(string text, GUIStyle style, params GUILayoutOption[] options)
Parameters
Text to display on group.
The style to use for background image and padding values. If left out, the background is transparent.
An optional list of layout options that specify extra layouting properties. Any values passed in here will override settings defined by the .
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
styleAdditional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
HorizontalScope(Texture, GUIStyle, GUILayoutOption[])
Create a new HorizontalScope and begin the corresponding horizontal group.
public HorizontalScope(Texture image, GUIStyle style, params GUILayoutOption[] options)
Parameters
The style to use for background image and padding values. If left out, the background is transparent.
An optional list of layout options that specify extra layouting properties. Any values passed in here will override settings defined by the .
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
styleAdditional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
HorizontalScope(GUIContent, GUIStyle, GUILayoutOption[])
Create a new HorizontalScope and begin the corresponding horizontal group.
public HorizontalScope(GUIContent content, GUIStyle style, params GUILayoutOption[] options)
Parameters
Text, image, and tooltip for this group.
The style to use for background image and padding values. If left out, the background is transparent.
An optional list of layout options that specify extra layouting properties. Any values passed in here will override settings defined by the .
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
styleAdditional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.