Easing Class

Definition

Ease settings and functionality for animation with curves

C++
public ref class Easing
Inheritance
Easing
Attributes

Constructors

Fields

Curve

The animation curve to use for the ease - default should be linear

Enabled

Is the ease enabled?

LerpTime

The amount of time the ease should run in seconds

Methods

Copy()

Create Easing object with copied internal properties

GetCurved()

get the ease value based on the animation curve

GetLinear()

get the linear ease value

IsLinear()
IsPlaying()

Is the ease currently running?

OnUpdate()

Update the ease each frame or on Update

SetCurve(Easing+BasicEaseCurves)

set the animation curve using a preset

Start()

start the ease if enabled

Stop()

stop the ease

Applies to

Product Versions
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0