这些方法的运行方式与常规 GUI 函数十分相似,并且在 EditorGUILayout 中也有匹配实现。
actionKey | 是否按住了平台相关的“action”修改键?(只读) |
indentLevel | 字段标签的缩进级别。 |
showMixedValue | 使后续控件呈现出编辑多个不同值的外观。 |
BeginChangeCheck | 检查代码块中是否有任何控件被更改。 |
BeginDisabledGroup | 创建一组可禁用的控件。 |
BeginProperty | 创建一个属性封装器,可用于使常规 GUI 控件与 SerializedProperty 配合使用。 |
BoundsField | Makes Center and Extents field for entering a Bounds. |
BoundsIntField | Makes Position and Size field for entering a BoundsInt. |
CanCacheInspectorGUI | 确定能否缓存 SerializedProperty 的检视面板 GUI。 |
ColorField | Makes a field for selecting a Color. |
CurveField | 生成一个用于编辑 AnimationCurve 的字段。 |
DelayedDoubleField | Makes a delayed text field for entering doubles. |
DelayedFloatField | Makes a delayed text field for entering floats. |
DelayedIntField | Makes a delayed text field for entering integers. |
DelayedTextField | Makes a delayed text field. |
DoubleField | 生成一个用于输入双精度浮点数的文本字段。 |
DrawPreviewTexture | 在矩形内绘制纹理。 |
DrawRect | 在当前编辑器窗口中的指定位置以指定大小绘制一个着色的矩形。 |
DrawTextureAlpha | 在矩形内绘制纹理的 Alpha 通道。 |
DropdownButton | Makes a button that reacts to mouse down, for displaying your own dropdown content. |
DropShadowLabel | 绘制带有投影的标签。 |
EndChangeCheck | 结束由 BeginChangeCheck () 开始的更改检查。 |
EndDisabledGroup | 结束由 BeginDisabledGroup 开始的禁用组。 |
EndProperty | 结束由 BeginProperty 开始的属性封装器。 |
EnumFlagsField | Displays a menu with an option for every value of the enum type when clicked. An option for the value 0 with name "Nothing" and an option for the value ~0 (that is, all bits set) with the name "Everything" are always displayed at the top of the menu. The names for the values 0 and ~0 can be overriden by defining these values in the enum type. |
EnumPopup | Makes an enum popup selection field. |
FloatField | Makes a text field for entering floats. |
FocusTextInControl | 将键盘焦点移动到指定的文本字段,并开始编辑内容。 |
Foldout | Makes a label with a foldout arrow to the left of it. |
GetPropertyHeight | 获取 PropertyField 控件所需的高度。 |
GradientField | Makes a field for editing a Gradient. |
HandlePrefixLabel | Makes a label for some control. |
HelpBox | Makes a help box with a message to the user. |
InspectorTitlebar | Makes an inspector-window-like titlebar. |
IntField | Makes a text field for entering integers. |
IntPopup | Makes an integer popup selection field. |
IntSlider | Makes a slider the user can drag to change an integer value between a min and a max. |
LabelField | Makes a label field. (Useful for showing read-only info.) |
LayerField | Makes a layer selection field. |
LongField | Makes a text field for entering long integers. |
MaskField | Makes a field for masks. |
MinMaxSlider | Makes a special slider the user can use to specify a range between a min and a max. |
MultiFloatField | Makes a multi-control with text fields for entering multiple floats in the same line. |
MultiIntField | Makes a multi-control with text fields for entering multiple integers in the same line. |
MultiPropertyField | Makes a multi-control with several property fields in the same line. |
ObjectField | Makes an object field. You can assign objects either by drag and drop objects or by selecting an object using the Object Picker. |
PasswordField | Makes a text field where the user can enter a password. |
Popup | Makes a generic popup selection field. |
PrefixLabel | Makes a label in front of some control. |
ProgressBar | Makes a progress bar. |
PropertyField | 使用此方法在编辑器中针对 SerializedProperty 创建一个字段。 |
RectField | Makes an X, Y, W, and H field for entering a Rect. |
RectIntField | Makes an X, Y, W, and H field for entering a RectInt. |
SelectableLabel | Makes a selectable label field. (Useful for showing read-only info that can be copy-pasted.) |
Slider | Makes a slider the user can drag to change a value between a min and a max. |
TagField | Makes a tag selection field. |
TextArea | Makes a text area. |
TextField | Makes a text field. |
Toggle | Makes a toggle. |
ToggleLeft | Makes a toggle field where the toggle is to the left and the label immediately to the right of it. |
Vector2Field | Makes an X and Y field for entering a Vector2. |
Vector2IntField | Makes an X and Y integer field for entering a Vector2Int. |
Vector3Field | Makes an X, Y, and Z field for entering a Vector3. |
Vector3IntField | Makes an X, Y, and Z integer field for entering a Vector3Int. |
Vector4Field | Makes an X, Y, Z, and W field for entering a Vector4. |