Custom control for editing properties that can be added to the EditorInspector.
A custom control for editing properties that can be added to the EditorInspector. It is added via EditorInspectorPlugin.
Used by the inspector, set to true when the property is drawn with the editor theme's warning color. This is used for editable children's properties.
Called when the read-only status of the property is changed. It may be used to change custom controls into a read-only or modifiable state.
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.
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).
Returns the edited object.
Note: This method could return null if the editor has not yet been associated with a property. However, in _update_property() and _set_read_only(), this value is guaranteed to be non-null.
Returns the edited property. If your editor is for a single property (added via EditorInspectorPlugin._parse_property()), then this will return the property.
Note: This method could return null if the editor has not yet been associated with a property. However, in _update_property() and _set_read_only(), this value is guaranteed to be non-null.
Puts the editor control below the property label. The control must be previously added using Node.add_child().
Used by the inspector, set to a control that will be used as a reference to calculate the size of the label.
Emit it if you want multiple properties modified at the same time. Do not use if added via EditorInspectorPlugin._parse_property().
Emitted when the revertability (i.e., whether it has a non-default value and thus is displayed with a revert icon) of a property has changed.
Do not emit this manually, use the emit_changed() method instead.
Emit it if you want to mark (or unmark) the value of a property for being saved regardless of being equal to the default value.
The default value is the one the property will get when the node is just instantiated and can come from an ancestor scene in the inheritance/instantiation chain, a script or a builtin class.