Outdated documentation
This documentation page refers to Godot
4.3,
and may be outdated or incorrect.
Additionally, this engine version is
no longer supported.
Check this page in the stable branch for the latest additions and corrections.
EditorSpinSlider
Inherits: Range < Control < CanvasItem < Node < Object
Godot editor's control for editing numeric values.
Description
This Control node is used in the editor's Inspector dock to allow editing of numeric values. Can be used with EditorInspectorPlugin to recreate the same behavior.
If the Range.step value is 1, the EditorSpinSlider will display up/down arrows, similar to SpinBox. If the Range.step value is not 1, a slider will be displayed instead.
Properties
|
||
focus_mode |
|
|
|
||
|
||
|
||
BitField[SizeFlags] |
size_flags_vertical |
|
step |
|
|
|
Signals
grabbed() 🔗
Emitted when the spinner/slider is grabbed.
ungrabbed() 🔗
Emitted when the spinner/slider is ungrabbed.
value_focus_entered() 🔗
Emitted when the value form gains focus.
value_focus_exited() 🔗
Emitted when the value form loses focus.
Property Descriptions
If true, the slider will not draw background.
If true, the slider and up/down arrows are hidden.
The text that displays to the left of the value.
If true, the slider can't be interacted with.
The suffix to display after the value (in a faded color). This should generally be a plural word. You may have to use an abbreviation if the suffix is too long to be displayed.