VerticalScope
Create a new VerticalScope and begin the corresponding vertical group.
阅读时间3 分钟最后更新于 1 个月前
Definition
- Type: Constructor
- Namespace: UnityEngine
- Assembly: UnityEngine.IMGUIModule
VerticalScope(GUILayoutOption[])
Create a new VerticalScope and begin the corresponding vertical group.
public VerticalScope(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 .
GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight
styleGUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight
Remarks
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight
VerticalScope(GUIStyle, GUILayoutOption[])
Create a new VerticalScope and begin the corresponding vertical group.
public VerticalScope(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 .
GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight
styleGUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight
Remarks
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight
VerticalScope(string, GUIStyle, GUILayoutOption[])
Create a new VerticalScope and begin the corresponding vertical group.
public VerticalScope(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 .
GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight
styleGUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight
Remarks
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight
VerticalScope(Texture, GUIStyle, GUILayoutOption[])
Create a new VerticalScope and begin the corresponding vertical group.
public VerticalScope(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 .
GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight
styleGUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight
Remarks
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight
VerticalScope(GUIContent, GUIStyle, GUILayoutOption[])
Create a new VerticalScope and begin the corresponding vertical group.
public VerticalScope(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 .
GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight
styleGUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight
Remarks
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight