Skip to content

AnimationField

StructChartGuruChartGuru
[Serializable]
public struct AnimationField

Serializable wrapper around an optional ChartGuru.Animation. Unity cannot serialize Animation? directly, so components expose this struct in their inspector. When ChartGuru.AnimationField.Enabled is false, the value is treated as null.

public bool Enabled { get; }

No description is available for this member.

Returns

System.Boolean — No return description is available.

public Animation Value { get; }

No description is available for this member.

Returns

ChartGuru.Animation — No return description is available.

public static AnimationField Disabled { get; }

A field configured to run no Animation (instant apply).

Returns

ChartGuru.AnimationField — No return description is available.

public static AnimationField Enable(Animation animation)

A field wrapping the supplied animation.

Parameters

Name Type Description
animation ChartGuru.Animation

Returns

ChartGuru.AnimationField — No return description is available.

public Animation? ToNullable()

No description is available for this member.

Returns

System.Nullable{ChartGuru.Animation} — No return description is available.

public static AnimationField FromNullable(Animation? animation)

No description is available for this member.

Parameters

Name Type Description
animation System.Nullable{ChartGuru.Animation}

Returns

ChartGuru.AnimationField — No return description is available.

public AnimationField WithAnimation(Animation animation)

No description is available for this member.

Parameters

Name Type Description
animation ChartGuru.Animation

Returns

ChartGuru.AnimationField — No return description is available.

public AnimationField WithEnabled(bool enabled)

No description is available for this member.

Parameters

Name Type Description
enabled System.Boolean

Returns

ChartGuru.AnimationField — No return description is available.

public bool Equals(AnimationField other)

No description is available for this member.

Parameters

Name Type Description
other ChartGuru.AnimationField

Returns

System.Boolean — No return description is available.

public override bool Equals(object obj)

No description is available for this member.

Parameters

Name Type Description
obj System.Object

Returns

System.Boolean — No return description is available.

public override int GetHashCode()

No description is available for this member.

Returns

System.Int32 — No return description is available.