Switch
Analog of the default Toggle, but changes mark position instead of changing checkmark visibility.
Options
IsOn
boolIs on?
Group
SwitchGroupSwitch group. Only one
Switchin the same group can be on.Direction
SwitchDirectionMark animation direction:
LeftToRight,RightToLeft,BottomToTop,TopToBottomMark
RectTransformAnimated mark.
MarkGraphic
GraphicMark graphic.
Background
GraphicBackground graphic.
MarkOnColor
ColorColor of the MarkGraphic when
Switchis on.MarkOffColor
ColorColor of the MarkGraphic when
Switchis off.BackgroundOnColor
ColorColor of the Background when
Switchis on.BackgroundOffColor
ColorColor of the Background when
Switchis on.AnimationDuration
floatAnimation duration.
AnimationCurve
AnimationCurveAnimation curve.
UnscaledTime
boolAnimate using unscaled time.
Events
OnValuedChanged
UnityEvent<bool>Event on value changed.