⚠ Preview docs — built from the develop branch and may be unstable. Go to the stable docs.

struct UISliderData

Data about a UI slider element’s current interaction state. Provided by the ui_slider_behavior function.

Instance Fields and Properties

   
BtnState activeState The current active/pressed state of the slider.
Vec2 buttonCenter The center of the slider button in window-relative coordinates.
float fingerOffset How far the finger is pressing into the slider, in meters.
BtnState focusState The current focus state of the slider.
int interactor The id of the interactor that is interacting with this slider, or -1 if none.




Found an issue with these docs, or have some additional questions? Create an Issue on Github!