Skip to main content

CurveElevation

A class in Root.Township, the global namespace.

Drives an "Elevation" animator state from a progress value, so an object rises or lowers with a curve.

Constructors​

MemberWhat it is
CurveElevation()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

1 private and internal field
MemberWhat it is
private Animator animatorThe animator holding the "Elevation" state.

Methods​

MemberWhat it is
void UpdateStep(float progress)Cross-fades the "Elevation" animation to the given progress. At 0.01 or below it resets and turns the animator off.

Used in​

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