Skip to content

ChartMorpher

ClassChartGuruChartGuru
public sealed class ChartMorpher

Read-only view of a ChartTransition for the Chart Guru 3D renderer, which still reads presented values through this type. It is removed with the 3D half of the transition system; use ChartTransition everywhere else.

public ChartMorpher(Chart chart)

Creates a view over a new transition driver for chart.

Parameters

Name Type
chart ChartGuru.Chart

StartValueAnimation(float[], Color[], Color[], Animation)

Section titled “StartValueAnimation(float[], Color[], Color[], Animation)”
public void StartValueAnimation(float[] previousValues, Color[] previousColors, Color[] currentColors, Animation animation)

Starts an index-aligned value transition; null previousValues grows every mark in from zero.

Parameters

Name Type
previousValues System.Single[]
previousColors UnityEngine.Color[]
currentColors UnityEngine.Color[]
animation ChartGuru.Animation
public void Dispose()

Releases the transition when this view created it.

public bool IsMorphing { get; }

True while the underlying transition runs.

Returns

System.Boolean

public NativeArray<float> CurrentValues { get; }

Presented value of every mark, by mark index; see ChartTransition.CurrentValues.

Returns

Unity.Collections.NativeArray{System.Single}

public bool IsEntryAnimation { get; }

True while the entry animation grows every mark in from zero.

Returns

System.Boolean