ColorScaleLegendInfo
public struct ColorScaleLegendInfoInformation for rendering a continuous color scale legend bar (e.g. for heatmaps).
Fields
Section titled “Fields”
BarRect
Section titled “BarRect”public Rect BarRectScreen-space rectangle for the gradient bar.
Returns
UnityEngine.Rect
public ColorScale ScaleThe color scale providing the gradient.
Returns
ChartGuru.ColorScale
public List<(float value, float position, string label)> TicksTick values and their screen positions (Y for vertical, X for horizontal).
Returns
System.Collections.Generic.List{System.ValueTuple{System.Single,System.Single,System.String}}
IsHorizontal
Section titled “IsHorizontal”public bool IsHorizontalWhether the bar is horizontal (bottom/top) or vertical (trailing/leading).
Returns
System.Boolean
IsValid
Section titled “IsValid”public bool IsValidWhether this legend info is valid and should be rendered.
Returns
System.Boolean