日本語翻訳ドキュメントはサポートを終了しました

MRTK 2.6 以降のドキュメントについては、公式の Microsoft ドキュメント を参照してください。

    Show / Hide Table of Contents

    Class Easing

    Ease settings and functionality for animation with curves

    Inheritance
    Object
    Easing
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Microsoft.MixedReality.Toolkit.Utilities
    Assembly: cs.temp.dll.dll
    Syntax
    [Serializable]
    public class Easing

    Constructors

    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

    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

    Methods

    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

    GetLinear()

    get the linear ease value

    Declaration
    public float GetLinear()
    Returns
    Type Description
    Single

    IsLinear()

    Declaration
    protected bool IsLinear()
    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()

    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()

    Stop()

    stop the ease

    Declaration
    public void Stop()
    Back to top Generated by DocFX