Class EditorSpinSlider
- Namespace
- Godot
- Assembly
- GodotSharpEditor.dll
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 Step value is 1
, the EditorSpinSlider will display up/down arrows, similar to SpinBox. If the Step value is not 1
, a slider will be displayed instead.
public class EditorSpinSlider : Range, IDisposable
- Inheritance
-
EditorSpinSlider
- Implements
- Inherited Members
Constructors
EditorSpinSlider()
public EditorSpinSlider()
Properties
Flat
If true
, the slider will not draw background.
public bool Flat { get; set; }
Property Value
HideSlider
If true
, the slider and up/down arrows are hidden.
public bool HideSlider { get; set; }
Property Value
Label
The text that displays to the left of the value.
public string Label { get; set; }
Property Value
ReadOnly
If true
, the slider can't be interacted with.
public bool ReadOnly { get; set; }
Property Value
Suffix
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.
public string Suffix { get; set; }
Property Value
Methods
HasGodotClassMethod(in godot_string_name)
Check if the type contains a method with the given name. This method is used by Godot to check if a method exists before invoking it. Do not call or override this method.
protected override bool HasGodotClassMethod(in godot_string_name method)
Parameters
method
godot_string_nameName of the method to check for.
Returns
HasGodotClassSignal(in godot_string_name)
Check if the type contains a signal with the given name. This method is used by Godot to check if a signal exists before raising it. Do not call or override this method.
protected override bool HasGodotClassSignal(in godot_string_name signal)
Parameters
signal
godot_string_nameName of the signal to check for.
Returns
InvokeGodotClassMethod(in godot_string_name, NativeVariantPtrArgs, out godot_variant)
Invokes the method with the given name, using the given arguments. This method is used by Godot to invoke methods from the engine side. Do not call or override this method.
protected override bool InvokeGodotClassMethod(in godot_string_name method, NativeVariantPtrArgs args, out godot_variant ret)
Parameters
method
godot_string_nameName of the method to invoke.
args
NativeVariantPtrArgsArguments to use with the invoked method.
ret
godot_variantValue returned by the invoked method.
Returns
Events
Grabbed
Emitted when the spinner/slider is grabbed.
public event Action Grabbed
Event Type
Ungrabbed
Emitted when the spinner/slider is ungrabbed.
public event Action Ungrabbed
Event Type
ValueFocusEntered
Emitted when the value form gains focus.
public event Action ValueFocusEntered
Event Type
ValueFocusExited
Emitted when the value form loses focus.
public event Action ValueFocusExited