Godot editor's control for editing numeric values.
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.
If true, changing via dragging is applied only at the end of the input (for example, when the user releases a mouse button).
If true, the EditorSpinSlider is considered to be editing an integer value. If false, the EditorSpinSlider is considered to be editing a floating-point value. This is used to determine whether a slider should be drawn by default. The slider is only drawn for floats; integers use up-down arrows similar to SpinBox instead, unless control_state is set to CONTROL_STATE_PREFER_SLIDER. It will also use EditorSettings.interface/inspector/integer_drag_speed instead of EditorSettings.interface/inspector/float_drag_speed if the slider is available.
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.
CONTROL_STATE_DEFAULT = 0The type of control used will depend on the value of editing_integer. Up-down arrows if true, a slider if false.
CONTROL_STATE_PREFER_SLIDER = 1A slider will always be used, even if editing_integer is enabled.
CONTROL_STATE_HIDE = 2Neither the up-down arrows nor the slider will be shown.