Skip to content

ChartAsset

ClassChartGuruChartGuru
public sealed class ChartAsset : ScriptableObject

A reusable ChartDefinition stored as an asset. Several hosts can share one asset; editing it changes all of them. Gallery templates are chart assets too.

public void NotifyChanged()

Tells every host that shares this asset to rebuild after an in-place edit.

public ChartAsset()

public ChartDefinition Definition { get; set; }

The definition stored in this asset.

Returns

ChartGuru.ChartDefinition

public int Revision { get; }

Increments whenever the definition changes through the API or the inspector.

Returns

System.Int32

public event Action<ChartAsset> Changed

Raised after the definition changes, so hosts that share the asset rebuild.

Returns

System.Action{ChartGuru.ChartAsset}