Struct EditorProperty
Custom control to edit properties for adding into the inspector.
struct EditorProperty
;
This control allows property editing for one or multiple properties into EditorInspector
. It is added via EditorInspectorPlugin
.
Properties
Name | Type | Description |
---|---|---|
checkable [get, set]
|
bool | Used by the inspector, set when property is checkable. |
checked [get, set]
|
bool | Used by the inspector, when the property is checked. |
drawRed [get, set]
|
bool | Used by the inspector, when the property must draw with error color. |
keying [get, set]
|
bool | Used by the inspector, when the property can add keys for animation. |
label [get, set]
|
String | Sets this property to change the label (if you want to show one). |
readOnly [get, set]
|
bool | Used by the inspector, when the property is read-only. |
Methods
Name | Description |
---|---|
_focusableFocused
|
|
_guiInput
|
|
addFocusable
|
If any of the controls added can gain keyboard focus, add it here. This ensures that focus will be restored if the inspector is refreshed. |
emitChanged
|
If one or several properties have changed, this must be called. field is used in case your editor can modify fields separately (as an example, Vector3.x). The changing argument avoids the editor requesting this property to be refreshed (leave as false if unsure).
|
getEditedObject
|
Gets the edited object. |
getEditedProperty
|
Gets the edited property. If your editor is for a single property (added via EditorInspectorPlugin ), then this will return the property.
|
getLabel
|
|
getTooltipText
|
Override if you want to allow a custom tooltip over your property. |
isCheckable
|
|
isChecked
|
|
isDrawRed
|
|
isKeying
|
|
isReadOnly
|
|
setBottomEditor
|
Adds controls with this function if you want them on the bottom (below the label). |
setCheckable
|
|
setChecked
|
|
setDrawRed
|
|
setKeying
|
|
setLabel
|
|
setReadOnly
|
|
updateProperty
|
When this virtual function is called, you must update your editor. |