用于 EditorGUI 控件的常见 GUIStyle。
boldFont | 加粗字体。 |
boldLabel | 粗体标签的样式。 |
centeredGreyMiniLabel | 采用小号字体且字体以灰色居中显示的标签的样式。 |
colorField | 用于 Color 字段的标题的样式。 |
foldout | 用于 EditorGUI.Foldout 的标题的样式。 |
foldoutHeader | 用于 EditorGUILayout.BeginFoldoutHeaderGroup 的标题的样式。 |
foldoutHeaderIcon | 用于 EditorGUILayout.BeginFoldoutHeaderGroup 的图标的样式。 |
foldoutPreDrop | 用于 EditorGUI.Foldout 的标题的样式。 |
helpBox | 用于 EditorGUI.HelpBox 的背景框的样式。 |
inspectorDefaultMargins | 将内容包含在采用此样式的垂直组中,以获取检视面板中使用的默认边距。 |
inspectorFullWidthMargins | 将内容包含在采用此样式的垂直组中,以获取检视面板中的全宽边距。 |
label | 用于采用前缀标签的所有 EditorGUI 重载上标记的样式。 |
largeLabel | 采用大号字体的标签的样式。 |
layerMaskField | 用于层遮罩的标题的样式。 |
linkLabel | 用于链接的样式。 |
miniBoldFont | 小号加粗字体。 |
miniBoldLabel | 粗体小标签的样式。 |
miniButton | 用于独立平台小按钮的样式。 |
miniButtonLeft | 用于水平按钮组中最左边按钮的样式。 |
miniButtonMid | 用于水平组中中间按钮的样式。 |
miniButtonRight | 用于水平组中最右边按钮的样式。 |
miniFont | 小号字体。 |
miniLabel | 采用小号字体的标签的样式。 |
miniPullDown | 下拉选单控件使用的样式。 |
miniTextField | 较小的文本字段。 |
numberField | 用于编辑器的数字字段的样式。 |
objectField | 用于对象字段的标题的样式。 |
objectFieldMiniThumb | 用于具有缩略图的对象字段的样式(例如纹理)。 |
objectFieldThumb | 用于对象字段中 Select 按钮的标题的样式。 |
popup | 用于 EditorGUI.Popup、EditorGUI.EnumPopup 的样式。 |
radioButton | 用于单选按钮的样式。 |
standardFont | 标准字体。 |
textArea | 用于 EditorGUI.TextArea 的样式。 |
textField | 用于 EditorGUI.TextField 的样式。 |
toggle | 用于 EditorGUI.Toggle 的标题的样式。 |
toggleGroup | 用于 EditorGUILayout.BeginToggleGroup 的标题的样式。 |
toolbar | 窗口顶部的工具栏背景。 |
toolbarButton | 工具栏中按钮和开关的样式。 |
toolbarDropDown | 工具栏下拉列表。 |
toolbarPopup | 工具栏弹出窗口。 |
toolbarSearchField | 工具栏搜索字段。 |
toolbarTextField | 工具栏文本字段。 |
whiteBoldLabel | 白色粗体标签的样式。 |
whiteLabel | 白色标签的样式。 |
whiteLargeLabel | 白色大标签的样式。 |
whiteMiniLabel | 白色小标签的样式。 |
wordWrappedLabel | 自动换行标签的样式。 |
wordWrappedMiniLabel | 自动换行小标签的样式。 |
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.