Table of Contents

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

bool

HideSlider

If true, the slider and up/down arrows are hidden.

public bool HideSlider { get; set; }

Property Value

bool

Label

The text that displays to the left of the value.

public string Label { get; set; }

Property Value

string

ReadOnly

If true, the slider can't be interacted with.

public bool ReadOnly { get; set; }

Property Value

bool

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

string

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_name

Name of the method to check for.

Returns

bool

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_name

Name of the signal to check for.

Returns

bool

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_name

Name of the method to invoke.

args NativeVariantPtrArgs

Arguments to use with the invoked method.

ret godot_variant

Value returned by the invoked method.

Returns

bool

Events

Grabbed

Emitted when the spinner/slider is grabbed.

public event Action Grabbed

Event Type

Action

Ungrabbed

Emitted when the spinner/slider is ungrabbed.

public event Action Ungrabbed

Event Type

Action

ValueFocusEntered

Emitted when the value form gains focus.

public event Action ValueFocusEntered

Event Type

Action

ValueFocusExited

Emitted when the value form loses focus.

public event Action ValueFocusExited

Event Type

Action