Skip to main content

Class AnimationCurveScriptableObject

A scriptable object that contains a reusable AnimationCurve.

[CreateAssetMenu(fileName = "New Animation Curve Scriptable Object", menuName = "ScriptableObject/Animation Curve Scriptable Object")]
public class AnimationCurveScriptableObject : ScriptableObject

Inheritance​

Fields​

curve​

The animation curve to evaluate against.

public AnimationCurve curve

Field Value​

AnimationCurve

Methods​

Evaluate(float)​

Evaluates the animation curve at the given input value.

public float Evaluate(float metric)

Parameters​

NameTypeDescription
metricfloatThe input value to evaluate (typically between 0 and 1).

Returns​

float — The evaluated output from the curve.