Skip to main content

Class RadialSegmentDisplayElement

A UI Toolkit visual element that renders a radial (circular) display composed of multiple colored segments and a movable pointer. Useful for visualizing or selecting angular values such as directions, sectors, or normalized parameters.

public class RadialSegmentDisplayElement : VisualElement

Inheritance​

Constructors​

RadialSegmentDisplayElement()​

Creates a new radial segment display element and registers its custom drawing callback.

public RadialSegmentDisplayElement()

Properties​

angleOffsetDeg​

Angular offset applied to all rendered elements in degrees. Controls the rotation of the zero-degree reference (for example, 90° = top position).

public float angleOffsetDeg { get; set; }

Property Value​

float

highValue​

Upper bound of the radial value range.

public float highValue { get; set; }

Property Value​

float

items​

Array of segment values defining the positions of each region on the circle. Values are mapped between lowValue and highValue.

public float[] items { get; set; }

Property Value​

float[]

lowValue​

Lower bound of the radial value range.

public float lowValue { get; set; }

Property Value​

float

value​

Current normalized value represented by the pointer on the radial display.

public float value { get; set; }

Property Value​

float