Szerkesztés

Megosztás a következőn keresztül:


Easing Class

Definition

Ease settings and functionality for animation with curves

public ref class Easing
[System.Serializable]
public class Easing
[<System.Serializable>]
type Easing = class
Public Class Easing
Inheritance
Easing
Attributes

Constructors

Easing()

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