Up to date

This page is up to date for Godot 4.2. If you still find outdated information, please open an issue.

Range

Inherits: Control < CanvasItem < Node < Object

Inherited By: EditorSpinSlider, ProgressBar, ScrollBar, Slider, SpinBox, TextureProgressBar

Abstract base class for controls that represent a number within a range.

Description

Range is an abstract base class for controls that represent a number within a range, using a configured step and page size. See e.g. ScrollBar and Slider for examples of higher-level nodes using Range.

Properties

bool

allow_greater

false

bool

allow_lesser

false

bool

exp_edit

false

float

max_value

100.0

float

min_value

0.0

float

page

0.0

float

ratio

bool

rounded

false

BitField<SizeFlags>

size_flags_vertical

0 (overrides Control)

float

step

0.01

float

value

0.0

Methods

void

_value_changed ( float new_value ) virtual

void

set_value_no_signal ( float value )

void

share ( Node with )

void

unshare ( )


Signals

changed ( )

Emitted when min_value, max_value, page, or