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

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

    Show / Hide Table of Contents

    Class AnimationCurveExtensions

    Extension methods for Unity's AnimationCurve class

    Inheritance
    Object
    AnimationCurveExtensions
    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
    Assembly: cs.temp.dll.dll
    Syntax
    public static class AnimationCurveExtensions

    Methods

    Duration(AnimationCurve)

    Returns the absolute duration of the curve from first to last key frame

    Declaration
    public static float Duration(this AnimationCurve curve)
    Parameters
    Type Name Description
    AnimationCurve curve

    The animation curve to check duration of.

    Returns
    Type Description
    Single

    Returns 0 if the curve is null or has less than 1 frame, otherwise returns time difference between first and last frame.

    Back to top Generated by DocFX