Interface: UiSliderDefaultedOptions
Defined in: ui/components/ui-slider-component.ts:23
Fields of UiSliderEcsComponent with a sensible default, or that are genuinely optional (no default at all); callers may omit these.
Extended by
Properties
fill?
optionalfill?:number
Defined in: ui/components/ui-slider-component.ts:41
The entity id of an optional fill visual - a child RectTransformEcsComponent
stretch-anchored from the track's left edge, whose anchorMax.x
createUiSliderEcsSystem drives to track value every tick.
maxValue
maxValue:
number
Defined in: ui/components/ui-slider-component.ts:28
The value value maps to at the track's right edge. Defaults to 1.
minValue
minValue:
number
Defined in: ui/components/ui-slider-component.ts:25
The value value maps to at the track's left edge. Defaults to 0.
value
value:
number
Defined in: ui/components/ui-slider-component.ts:31
The slider's current value, clamped to [minValue, maxValue]. Defaults to minValue.
wholeNumbers
wholeNumbers:
boolean
Defined in: ui/components/ui-slider-component.ts:34
Rounds value to the nearest whole number whenever it's set by a drag. Defaults to false.