Class Easing
Ease settings and functionality for animation with curves
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.Utilities
Assembly: cs.temp.dll.dll
Syntax
[Serializable]
[Serializable]
public class Easing
Constructors
Easing()
Declaration
public Easing()
Easing()
Declaration
public Easing()
Fields
Curve
The animation curve to use for the ease - default should be linear
Declaration
public AnimationCurve Curve
Field Value
Type | Description |
---|---|
AnimationCurve |
Curve
The animation curve to use for the ease - default should be linear
Declaration
public AnimationCurve Curve
Field Value
Type | Description |
---|---|
AnimationCurve |
Enabled
Is the ease enabled?
Declaration
public bool Enabled
Field Value
Type | Description |
---|---|
Boolean |
Enabled
Is the ease enabled?
Declaration
public bool Enabled
Field Value
Type | Description |
---|---|
Boolean |
LerpTime
The amount of time the ease should run in seconds
Declaration
public float LerpTime
Field Value
Type | Description |
---|---|
Single |
LerpTime
The amount of time the ease should run in seconds
Declaration
public float LerpTime
Field Value
Type | Description |
---|---|
Single |
Methods
Copy()
Create Easing object with copied internal properties
Declaration
public Easing Copy()
Returns
Type | Description |
---|---|
Easing | Copy of current Easing instance |
Copy()
Create Easing object with copied internal properties
Declaration
public Easing Copy()
Returns
Type | Description |
---|---|
Easing | Copy of current Easing instance |
GetCurved()
get the ease value based on the animation curve
Declaration
public float GetCurved()
Returns
Type | Description |
---|---|
Single |
GetCurved()
get the ease value based on the animation curve
Declaration
public float GetCurved()
Returns
Type | Description |
---|---|
Single |
GetLinear()
get the linear ease value
Declaration
public float GetLinear()
Returns
Type | Description |
---|---|
Single |
GetLinear()
get the linear ease value
Declaration
public float GetLinear()
Returns
Type | Description |
---|---|
Single |
IsLinear()
Declaration
protected bool IsLinear()
Returns
Type | Description |
---|---|
Boolean |
IsLinear()
Declaration
protected bool IsLinear()
Returns
Type | Description |
---|---|
Boolean |
IsPlaying()
Is the ease currently running?
Declaration
public bool IsPlaying()
Returns
Type | Description |
---|---|
Boolean |
IsPlaying()
Is the ease currently running?
Declaration
public bool IsPlaying()
Returns
Type | Description |
---|---|
Boolean |
OnUpdate()
Update the ease each frame or on Update
Declaration
public void OnUpdate()
OnUpdate()
Update the ease each frame or on Update
Declaration
public void OnUpdate()
SetCurve(Easing.BasicEaseCurves)
set the animation curve using a preset
Declaration
public void SetCurve(Easing.BasicEaseCurves curve)
Parameters
Type | Name | Description |
---|---|---|
Easing.BasicEaseCurves | curve |
SetCurve(Easing.BasicEaseCurves)
set the animation curve using a preset
Declaration
public void SetCurve(Easing.BasicEaseCurves curve)
Parameters
Type | Name | Description |
---|---|---|
Easing.BasicEaseCurves | curve |
Start()
start the ease if enabled
Declaration
public void Start()
Start()
start the ease if enabled
Declaration
public void Start()
Stop()
stop the ease
Declaration
public void Stop()
Stop()
stop the ease
Declaration
public void Stop()