ChartAsset
public sealed class ChartAsset : ScriptableObjectA reusable ChartDefinition stored as an asset. Several hosts can share one asset;
editing it changes all of them. Gallery templates are chart assets too.
Methods
Section titled “Methods”
NotifyChanged()
Section titled “NotifyChanged()”public void NotifyChanged()Tells every host that shares this asset to rebuild after an in-place edit.
Constructors
Section titled “Constructors”
ChartAsset()
Section titled “ChartAsset()”public ChartAsset()Properties
Section titled “Properties”
Definition
Section titled “Definition”public ChartDefinition Definition { get; set; }The definition stored in this asset.
Returns
ChartGuru.ChartDefinition
Revision
Section titled “Revision”public int Revision { get; }Increments whenever the definition changes through the API or the inspector.
Returns
System.Int32
Events
Section titled “Events”
Changed
Section titled “Changed”public event Action<ChartAsset> ChangedRaised after the definition changes, so hosts that share the asset rebuild.
Returns
System.Action{ChartGuru.ChartAsset}