Skip to content

BackgroundOverrideState

StructChartGuruChartGuru
public struct BackgroundOverrideState

Plain data container for background override state shared by all chart host components (ChartGuru.ChartComponent, ChartGuru.ChartGraphic, ChartGuruElement). Lifted out of the host components so their serialized authoring surfaces map onto a single shape.

public bool Enabled

True when the override takes effect; false leaves the theme background.

Returns

System.Boolean

public ChartBackgroundMode Mode

Background rendering mode.

Returns

ChartGuru.ChartBackgroundMode

public Color Color

Solid color used when ChartGuru.BackgroundOverrideState.Mode is ChartGuru.ChartBackgroundMode.SolidColor.

Returns

UnityEngine.Color

public LinearGradientStyle Gradient

Linear gradient used when ChartGuru.BackgroundOverrideState.Mode is ChartGuru.ChartBackgroundMode.LinearGradient.

Returns

ChartGuru.LinearGradientStyle

public FourCornerGradient FourCorner

Four-corner gradient used when ChartGuru.BackgroundOverrideState.Mode is ChartGuru.ChartBackgroundMode.FourCornerGradient.

Returns

ChartGuru.FourCornerGradient