Savable Curve

📈 SavableCurve Struct

A savable version of an AnimationCurve.

Namespace: Esper.Inventool.DataManagement Access: public Type: struct Attributes: [Serializable]


📦 Fields

Access
Field
Type
Description

public

keys

List<SavableKeyframe>

The list of savable keyframes.


🔧 Constructors

Access
Constructor
Description

public

SavableCurve(AnimationCurve curve)

Creates a savable curve from an AnimationCurve.


🧰 Methods

Access
Method
Returns
Description

public

ToCurve()

AnimationCurve

Converts this SavableCurve back into an AnimationCurve.


🧩 Nested Structs

public struct SavableKeyframe

A savable version of an AnimationCurve keyframe.

Access
Field
Type
Description

public

time

float

The time of the keyframe.

public

value

float

The value of the keyframe.

public

inTangent

float

The incoming tangent of the keyframe.

public

outTangent

float

The outgoing tangent of the keyframe.

Constructors

Access
Constructor
Description

public

SavableKeyframe(Keyframe key)

Creates a savable keyframe from a Unity Keyframe.

Methods

Access
Method
Returns
Description

public

ToKeyframe()

Keyframe

Converts this SavableKeyframe back into a Unity Keyframe.

Last updated