静态属性
| EditorGUI | EditorGUILayout |
|---|---|
| actionKey | x |
| indentLevel | x |
| showMixedValue | x |
静态方法
| EditorGUI | EditorGUILayout |
|---|---|
| x | BeginFadeGroup / EndFadeGroup |
| x | BeginHorizontal / EndHorizontal |
| x | BeginScrollView / EndScrollView |
| x | BeginToggleGroup / EndToggleGroup |
| x | BeginVertical / EndVertical |
| BegineChangeCheck / EndChangeCheck | x |
| BeginDisabledGroup / EndDisabledGroup | x |
| BeginProperty / EndProperty | x |
| BoundsField | |
| BoundsIntField | |
| CanCacheInspectorGUI | x |
| ColorField | |
| CurveField | |
| DelayedDoubleField | |
| DelayedFloatField | |
| DelayedIntField | |
| DelayedTextField | |
| DoubleField | |
| DropdownButton | |
| DrawPreviewTexture | x |
| DrawRect | x |
| DrawTextureAlpha | x |
| DropShadowLabel | x |
| EnumFlagsField | |
| EnumPopup | |
| FloatField | |
| FocusTextInControl | x |
| Foldout | |
| x | GetControlRect |
| GetPropertyHeight | x |
| HandlePrefixLabel | x |
| HelpBox | |
| InspectorTitlebar | |
| IntField | |
| IntPopup | |
| IntSlider | |
| LabelField | |
| LayerField | |
| LongField | |
| MaskField | |
| MinMaxSlider | |
| MultiFloatField | x |
| MultiIntField | x |
| MultiPropertyField | x |
| ObjectField | |
| PasswordField | |
| Popup | |
| PrefixLabel | |
| ProgressBar | x |
| PropertyField | |
| RectField | |
| RectIntField | |
| SelectableLabel | |
| Slider | |
| x | Space |
| TagField | |
| TextArea | |
| TextField | |
| Toggle | |
| ToggleLeft | |
| Vector2Field | |
| Vector2IntField | |
| Vector3Field | |
| Vector3IntField | |
| Vector4Field |
本文详细介绍了Unity编辑器中GUI系统的各个组件及其用法,包括静态属性与方法,如EditorGUI和EditorGUILayout的相关函数,例如ColorField、IntField等,并探讨了如何使用这些工具来定制编辑器界面。

12万+

被折叠的 条评论
为什么被折叠?



