docs.unity3d.com
    Show / Hide Table of Contents

    Class AnimationSampler

    Inheritance
    Object
    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
    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
    Int32

    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
    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
    Int32

    Methods

    GetInterpolationType()

    Declaration
    public InterpolationType GetInterpolationType()
    Returns
    Type Description
    InterpolationType
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023