struct AnimationCurves

Inherits: IScriptExportable

A set of animation curves representing translation/rotation/scale and generic animation.

Public

Constructors

AnimationCurves

AnimationCurves() = default

Methods

AddPositionCurve

void AddPositionCurve(const String &name, const TAnimationCurve<Vector3> &curve)

Registers a new curve used for animating position.

name
Unique name of the curve. This name will be used mapping the curve to the relevant bone in a skeleton, if any.
curve
Curve to add to the clip.

AddRotationCurve

void AddRotationCurve(const String &name, const TAnimationCurve<Quaternion> &curve)

Registers a new curve used for animating rotation.

name
Unique name of the curve. This name will be used mapping the curve to the relevant bone in a skeleton, if any.
curve
Curve to add to the clip.

AddScaleCurve

void AddScaleCurve(const String &name, const TAnimationCurve<Vector3> &curve)

Registers a new curve used for animating scale.

name
Unique name of the curve. This name will be used mapping the curve to the relevant bone in a skeleton, if any.
curve
Curve to add to the clip.

AddGenericCurve

void AddGenericCurve(const String &name, const TAnimationCurve<float> &curve)

Registers a new curve used for generic animation.

name
Unique name of the curve. This can be used for retrieving the value of the curve from animation.
curve
Curve to add to the clip.

RemovePositionCurve

void RemovePositionCurve(const String &name)

Removes an existing curve from the clip.

RemoveRotationCurve

void RemoveRotationCurve(const String &name)

Removes an existing curve from the clip.

RemoveScaleCurve

void RemoveScaleCurve(const String &name)

Removes an existing curve from the clip.

RemoveGenericCurve

void RemoveGenericCurve(const String &name)

Removes an existing curve from the clip.

Fields

Position

Vector<TNamedAnimationCurve<Vector3>> Position

Curves for animating scene object's position.

Rotation

Vector<TNamedAnimationCurve<Quaternion>> Rotation

Curves for animating scene object's rotation.

Scale

Vector<TNamedAnimationCurve<Vector3>> Scale

Curves for animating scene object's scale.

Generic

Vector<TNamedAnimationCurve<float>> Generic

Curves for animating generic component properties.