Table of Contents

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
object
Object
Component
Behaviour
MonoBehaviour
UIBehaviour
Selectable
LinearSlider
Implements
Inherited Members

Properties

Direction

Logical direction for the slider movement and fill.

public LinearSlider.SliderDirection Direction { get; set; }

Property Value

LinearSlider.SliderDirection

SliderFillType

Current visual fill type. Changing resets anchors and refreshes visuals.

public LinearSlider.FillType SliderFillType { get; set; }

Property Value

LinearSlider.FillType

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

eventData PointerEventData
isValueClamped bool

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

executing CanvasUpdate

The 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

direction LinearSlider.SliderDirection

SetFillImage()

protected override void SetFillImage()

SetHandlePosition()

protected override void SetHandlePosition()

SetOrigin()

protected override void SetOrigin()

Update()

protected virtual void Update()