docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class AnimationSampler

    Inheritance
    object
    AnimationSampler
    AnimationSampler
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: GLTFast.Schema
    Assembly: solution.dll
    Syntax
    [Serializable]
    public class AnimationSampler

    Fields

    input

    The index of an accessor containing keyframe input values, e.G., time. That accessor must have componentType FLOAT. The values represent time in seconds with time[0] >= 0.0, and strictly increasing values, i.e., time[n + 1] > time[n]

    Declaration
    public int input
    Field Value
    Type Description
    int

    interpolation

    Interpolation algorithm. When an animation targets a node's rotation, and the animation's interpolation is \"LINEAR\", spherical linear interpolation (slerp) should be used to interpolate quaternions. When interpolation is \"STEP\", animated value remains constant to the value of the first point of the timeframe, until the next timeframe.

    Declaration
    [Obsolete("Use GetInterpolationType for access.")]
    public string interpolation
    Field Value
    Type Description
    string

    output

    The index of an accessor, containing keyframe output values. Output and input accessors must have the same count. When sampler is used with TRS target, output accessor's componentType must be FLOAT.

    Declaration
    public int output
    Field Value
    Type Description
    int

    Methods

    GetInterpolationType()

    Declaration
    public InterpolationType GetInterpolationType()
    Returns
    Type Description
    InterpolationType
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)