EditorStyles 编辑样式
Common GUIStyles used for EditorGUI controls. These are set up by calling EditorGUIUtility.LookLikeInspector and EditorGUIUtility.LookLikeControls.
常用GUIStyles使用于EditorGUI空间。这些设置通过调用EditorGUIUtility.LookLikeInspector 和 EditorGUIUtility.LookLikeControls。
Note: This is an editor class. To use it you have to place your script in Assets/Editor inside your project folder. Editor classes are in the UnityEditor namespace so for C# scripts you need to add "using UnityEditor;" at the beginning of the script.
注意:这是一个编辑器类,如果想使用它你需要把它放到工程目录下的Assets/Editor文件夹下。编辑器类在UnityEditor命名空间下。所以当使用C#脚本时,你需要在脚本前面加上 "using UnityEditor"引用。
Use these styles to make GUI that looks native to Unity
使用这些样式来制作GUI。
Class Variables类变量
- labelStyle used for the labelled on all EditorGUI overloads that take a prefix label
样式用于标记所有EditorGUI重载,采取一个前缀标签。 - miniLabelStyle for label with small font. // 样式用于小字体标签。
- largeLabelStyle for label with large font. // 样式用于大字体标签。
- boldLabelStyle for bold label. // 样式用于粗体标签。
- miniBoldLabelStyle for mini bold label. // 样式用于小粗体标签。
- wordWrappedLabelStyle for word wrapped label. // 样式用于词语换行标签。
- wordWrappedMiniLabelStyle for word wrapped mini label. // 样式用于词语换行小标签。
- whiteLabelStyle for white label. // 样式用于白色标签。
- whiteMiniLabelStyle for white mini label. // 样式用于白色小标签。
- whiteLargeLabelStyle for white large label. // 样式用于白色大标签。
- whiteBoldLabelStyle for white bold label. // 样式用于白色粗体标签。
- radioButtonStyle used for a radio button // 样式用于单选按钮。
- miniButtonStyle used for a standalone small button.
样式用于独立小按钮。 - miniButtonLeftStyle used for the leftmost button in a horizontal button group.
样式用于水平按钮组中左侧按钮。 - miniButtonMidStyle used for the middle buttons in a horizontal group.
样式用于水平按钮组中中间小按钮。 - miniButtonRightStyle used for the rightmost button in a horizontal group.
样式用于水平按钮组中右侧按钮。 - textFieldStyle used for EditorGUI.TextField
样式用于EditorGUI.TextField文本字段。 - miniTextFieldSmaller text field // 小文本字段。
- numberFieldStyle used for field editors for numbers
样式用于编辑器数字字段。 - popupStyle used for EditorGUI.Popup, EditorGUI.EnumPopup,
样式用于EditorGUI.Popup, EditorGUI.EnumPopup。 - structHeadingLabelStyle used for headings for structures (Vector3, Rect, etc)
样式用于结构的标题(Vector3, Rect等)。 - objectFieldStyle used for headings for object fields.
样式用于物体字段的标题。 - objectFieldThumbStyle used for headings for the Select button in object fields.
样式用于在物体字段的选择按钮的标题。 - colorFieldStyle used for headings for Color fields.
样式用于颜色字段的标题。 - layerMaskFieldStyle used for headings for Layer masks.
样式用于层蒙版的标题。 - toggleStyle used for headings for EditorGUI.Toggle.
样式用于EditorGUI.Toggle的标题。 - foldoutStyle used for headings for EditorGUI.Foldout.
样式用于EditorGUI.Foldout的标题。 - foldoutPreDropStyle used for headings for EditorGUI.Foldout.
样式用于EditorGUI.Foldout的标题。 - toggleGroupStyle used for headings for EditorGUILayout.BeginToggleGroup.
样式用于EditorGUILayout.BeginToggleGroup的标题。 - standardFontStandard font. // 标准字体。
- boldFontBold font. // 粗体。
- miniFontMini font. // 小字体。
- miniBoldFontMini Bold font. // 粗体小字体。
- toolbarToolbar background from top of windows.
窗口顶部的工具栏背景。 - toolbarButtonStyle for Button and Toggles in toolbars.
样式用于工具栏的按钮和开关。 - toolbarPopupToolbar Popup // 工具栏弹出
- toolbarDropDownToolbar Dropdown // 工具栏下拉。
- toolbarTextFieldToolbar text field // 工具栏文本字段。