Class LinearSlider
- Namespace
- Fallencake.UI
- Assembly
- Fallencake.UI.dll
Linear slider implementation supporting horizontal/vertical directions and two fill modes (Filled or Sliced).
public class LinearSlider : Slider, IMultiSelectable, ISlider
- Inheritance
-
objectObjectComponentBehaviourMonoBehaviourUIBehaviourSelectableLinearSlider
- Implements
- Inherited Members
Properties
Direction
Logical direction for the slider movement and fill.
public LinearSlider.SliderDirection Direction { get; set; }
Property Value
SliderFillType
Current visual fill type. Changing resets anchors and refreshes visuals.
public LinearSlider.FillType SliderFillType { get; set; }
Property Value
Methods
GraphicUpdateComplete()
Callback sent when this ICanvasElement has completed Graphic rebuild.
public virtual void GraphicUpdateComplete()
HandleSliderMouseInput(PointerEventData, bool)
protected override void HandleSliderMouseInput(PointerEventData eventData, bool isValueClamped)
Parameters
eventDataPointerEventDataisValueClampedbool
LayoutComplete()
Callback sent when this ICanvasElement has completed layout.
public virtual void LayoutComplete()
Rebuild(CanvasUpdate)
Rebuild the element for the given stage.
public virtual void Rebuild(CanvasUpdate executing)
Parameters
executingCanvasUpdateThe current CanvasUpdate stage being rebuild.
ResetFillImageAnchor()
Resets the anchors of the fill image to stretch (for filled mode).
public void ResetFillImageAnchor()
SetDirection(SliderDirection)
Applies a new logical direction and refreshes visuals/anchors accordingly.
public void SetDirection(LinearSlider.SliderDirection direction)
Parameters
directionLinearSlider.SliderDirection
SetFillImage()
protected override void SetFillImage()
SetHandlePosition()
protected override void SetHandlePosition()
SetOrigin()
protected override void SetOrigin()
Update()
protected virtual void Update()