EditorGUI 和 EditorGUILayout 对比

本文详细介绍了Unity编辑器中GUI系统的各个组件及其用法,包括静态属性与方法,如EditorGUI和EditorGUILayout的相关函数,例如ColorField、IntField等,并探讨了如何使用这些工具来定制编辑器界面。

静态属性

EditorGUIEditorGUILayout
actionKeyx
indentLevelx
showMixedValuex

静态方法

EditorGUIEditorGUILayout
xBeginFadeGroup / EndFadeGroup
xBeginHorizontal / EndHorizontal
xBeginScrollView / EndScrollView
xBeginToggleGroup / EndToggleGroup
xBeginVertical / EndVertical
BegineChangeCheck / EndChangeCheckx
BeginDisabledGroup / EndDisabledGroupx
BeginProperty / EndPropertyx
BoundsField
BoundsIntField
CanCacheInspectorGUIx
ColorField
CurveField
DelayedDoubleField
DelayedFloatField
DelayedIntField
DelayedTextField
DoubleField
DropdownButton
DrawPreviewTexturex
DrawRectx
DrawTextureAlphax
DropShadowLabelx
EnumFlagsField
EnumPopup
FloatField
FocusTextInControlx
Foldout
xGetControlRect
GetPropertyHeightx
HandlePrefixLabelx
HelpBox
InspectorTitlebar
IntField
IntPopup
IntSlider
LabelField
LayerField
LongField
MaskField
MinMaxSlider
MultiFloatFieldx
MultiIntFieldx
MultiPropertyFieldx
ObjectField
PasswordField
Popup
PrefixLabel
ProgressBarx
PropertyField
RectField
RectIntField
SelectableLabel
Slider
xSpace
TagField
TextArea
TextField
Toggle
ToggleLeft
Vector2Field
Vector2IntField
Vector3Field
Vector3IntField
Vector4Field
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值