Skip to main content

Curve

A class in Root.Township, the global namespace.

A hashed asset wrapping an AnimationCurve, stored under StatDefinition/Curves.

Constructors​

MemberWhat it is
Curve()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

1 private and internal field
MemberWhat it is
private AnimationCurve curveThe animation curve that Evaluate reads.

Methods​

MemberWhat it is
float Evaluate(float time)Returns the curve's value at a time.

Used in​

Members of other types that take, return or hold a Curve: