Skip to content

ChartTextOptions

StructChartGuruChartGuru
public struct ChartTextOptions

Configuration options for chart text rendering. Backend-agnostic settings shared by Canvas TMP labels, UI Toolkit labels, and editor previews.

public Color Color

Text color.

Returns

UnityEngine.Color

public int FontSize

Font size in points.

Returns

System.Int32

public Object FontAsset

Font asset reference. Canvas labels expect TMP_FontAsset; editor and UI Toolkit surfaces may use their native font assets.

Returns

UnityEngine.Object

public ChartFontStyle FontStyle

Font style (normal, bold, italic, etc.)

Returns

ChartGuru.ChartFontStyle

public ChartTextAlignment Alignment

Text alignment.

Returns

ChartGuru.ChartTextAlignment

public GameObject CustomTemplate

Optional template GameObject for advanced styling (shadows, outlines, etc.) When set, this prefab is instantiated and used instead of creating a new component.

Returns

UnityEngine.GameObject

public bool Visible

Whether this text category is visible.

Returns

System.Boolean

public static ChartTextOptions Default { get; }

Creates default text options.

Returns

ChartGuru.ChartTextOptions

public static ChartTextOptions AxisLabel { get; }

Creates options for axis labels.

Returns

ChartGuru.ChartTextOptions

public static ChartTextOptions AxisTitle { get; }

Creates options for axis titles.

Returns

ChartGuru.ChartTextOptions

public static ChartTextOptions DataLabel { get; }

Creates options for data labels.

Returns

ChartGuru.ChartTextOptions

public static ChartTextOptions Legend { get; }

Creates options for legend text.

Returns

ChartGuru.ChartTextOptions

public static ChartTextOptions Title { get; }

Creates options for chart title.

Returns

ChartGuru.ChartTextOptions

public static ChartTextOptions Subtitle { get; }

Creates options for chart subtitle.

Returns

ChartGuru.ChartTextOptions

public static ChartTextOptions Tooltip { get; }

Creates options for tooltip text.

Returns

ChartGuru.ChartTextOptions