Skip to main content

Class FeedbackScoreVariable

A scriptable object representing a feedback score calculated from a metric and an animation curve.

[CreateAssetMenu(fileName = "New FeedBackScoreVariable", menuName = "ScriptableObject/Scriptable/Variable/Feedback/ScoreVariable")]
public class FeedbackScoreVariable : FloatVariable, IAddable<float>, ISubtractable<float>

Inheritance​

Implements​

Inherited Members​

Fields​

curve​

The animation curve used to convert the metric's runtime value into a score.

public AnimationCurveScriptableObject curve

Field Value​

AnimationCurveScriptableObject

metric​

The metric variable whose runtime value is evaluated by the curve.

public FloatVariable metric

Field Value​

FloatVariable

Properties​

RuntimeValue​

Gets the runtime value of the variable, which is the computed feedback score.

public override float RuntimeValue { get; }

Property Value​

float