Novelty scripting reference > Types > Slider

Slider

Slider is a sub-class of Object and shares all of its members and methods.
Slider is a reference type. This means it has no constructor and can only be passed around by handle (Slider@).

Object types that can be cast as Slider: <Slider>


Members

float value (Property)
Slider value.

Vector2 range (Property)
Slider range (min, max)


Sample

// Casting an Object handle to Slider handle
Slider@ s = Scene.GetObject("A slider object") as Slider;

Back to top