Repository navigation
Easing
Static library of the most common easing equasions in a form of standard AnimationCurve for wide compatibility.

float weight = Easing.SinOut.Evaluate(t);Shared AnimationCurve presets on the range 0–1. Time is the key, value is the eased weight.
The instances are shared. Do not add or move keys on them. Easing.Clone returns a private copy with the same keys and wrap mode.
Linear, Spring, and in / out / in-out for:
-
Quad,Cubic,Quart,Quint -
Sin,Expo,Circ -
Back,Bounce,Elastic
QuadIn is the slow start, QuadOut the slow end, QuadInOut both. Same pattern for the others.
Every curve is 0 at t = 0 and 1 at t = 1. Back, Elastic, and Spring leave the 0–1 range on the way (overshoot). The others stay inside it.
Linear, the quadratics, the cubics, Back, and Bounce are exact. The rest are cubic fits of the equation, within about 0.001.
Elastic uses period 0.3 and phase period / 4, so ElasticInOut meets in the middle. Expo is pinned to 0 and 1; the raw power term misses one end by 2^-10.
Outside 0–1 the curves hold the end value (WrapMode.Clamp).
openupm add com.manefunction.tools-unity