Table of Contents

Class RadialSlider

Namespace
Fallencake.UI
Assembly
Fallencake.UI.dll

Radial slider implementation that maps value to 360° arc with configurable origin and clockwise/counterclockwise fill direction.

public class RadialSlider : Slider, IMultiSelectable, ISlider
Inheritance
object
Object
Component
Behaviour
MonoBehaviour
UIBehaviour
Selectable
RadialSlider
Implements
Inherited Members

Properties

CurrentAngle

Angle derived from normalized value (0..360 degrees).

public float CurrentAngle { get; }

Property Value

float

CurrentAngleRaw

Angle derived from raw value without normalization.

public float CurrentAngleRaw { get; }

Property Value

float

Direction

Fill direction around the circle.

public RadialSlider.FillDirection Direction { get; set; }

Property Value

RadialSlider.FillDirection

Methods

GraphicUpdateComplete()

See ICanvasElement.GraphicUpdateComplete

public virtual void GraphicUpdateComplete()

HandleSliderMouseInput(PointerEventData, bool)

protected override void HandleSliderMouseInput(PointerEventData eventData, bool isValueClamped)

Parameters

eventData PointerEventData
isValueClamped bool

LayoutComplete()

See ICanvasElement.LayoutComplete

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.

SetHandlePosition()

protected override void SetHandlePosition()

SetOrigin()

protected override void SetOrigin()