html.editorfor 样式,EditorStyles 编辑样式

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类变量label

Style used for the labelled on all EditorGUI overloads that take a prefix label

样式用于标记所有EditorGUI重载,采取一个前缀标签。

miniLabel

Style for label with small font. // 样式用于小字体标签。

largeLabel

Style for label with large font. // 样式用于大字体标签。

boldLabel

Style for bold label. // 样式用于粗体标签。

miniBoldLabel

Style for mini bold label. // 样式用于小粗体标签。

wordWrappedLabel

Style for word wrapped label. // 样式用于词语换行标签。

wordWrappedMiniLabel

Style for word wrapped mini label. // 样式用于词语换行小标签。

whiteLabel

Style for white label. // 样式用于白色标签。

whiteMiniLabel

Style for white mini label. // 样式用于白色小标签。

whiteLargeLabel

Style for white large label. // 样式用于白色大标签。

whiteBoldLabel

Style for white bold label. // 样式用于白色粗体标签。

radioButton

Style used for a radio button // 样式用于单选按钮。

miniButton

Style used for a standalone small button.

样式用于独立小按钮。

miniButtonLeft

Style used for the leftmost button in a horizontal button group.

样式用于水平按钮组中左侧按钮。

miniButtonMid

Style used for the middle buttons in a horizontal group.

样式用于水平按钮组中中间小按钮。

miniButtonRight

Style used for the rightmost button in a horizontal group.

样式用于水平按钮组中右侧按钮。

textField

Style used for EditorGUI.TextField

样式用于EditorGUI.TextField文本字段。

miniTextField

Smaller text field // 小文本字段。

numberField

Style used for field editors for numbers

样式用于编辑器数字字段。

popup

Style used for EditorGUI.Popup, EditorGUI.EnumPopup,

样式用于EditorGUI.Popup, EditorGUI.EnumPopup。

structHeadingLabel

Style used for headings for structures (Vector3, Rect, etc)

样式用于结构的标题(Vector3, Rect等)。

objectField

Style used for headings for object fields.

样式用于物体字段的标题。

objectFieldThumb

Style used for headings for the Select button in object fields.

样式用于在物体字段的选择按钮的标题。

colorField

Style used for headings for Color fields.

样式用于颜色字段的标题。

layerMaskField

Style used for headings for Layer masks.

样式用于层蒙版的标题。

toggle

Style used for headings for EditorGUI.Toggle.

样式用于EditorGUI.Toggle的标题。

foldout

Style used for headings for EditorGUI.Foldout.

样式用于EditorGUI.Foldout的标题。

foldoutPreDrop

Style used for headings for EditorGUI.Foldout.

样式用于EditorGUI.Foldout的标题。

toggleGroup

Style used for headings for EditorGUILayout.BeginToggleGroup.

样式用于EditorGUILayout.BeginToggleGroup的标题。

standardFont

Standard font. // 标准字体。

boldFont

Bold font. //  粗体。

miniFont

Mini font. //  小字体。

miniBoldFont

Mini Bold font. //  粗体小字体。

toolbar

Toolbar background from top of windows.

窗口顶部的工具栏背景。

toolbarButton

Style for Button and Toggles in toolbars.

样式用于工具栏的按钮和开关。

toolbarPopup

Toolbar Popup // 工具栏弹出

toolbarDropDown

Toolbar Dropdown // 工具栏下拉。

toolbarTextField

Toolbar text field // 工具栏文本字段。

,

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值