GltfAnimationSampler Class

Definition

Combines input and output accessors with an interpolation algorithm to define a keyframe graph (but not its target). https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/schema/animation.sampler.schema.json

public ref class GltfAnimationSampler : Microsoft::MixedReality::Toolkit::Utilities::Gltf::Schema::GltfProperty
public ref class GltfAnimationSampler : Microsoft::MixedReality::Toolkit::Utilities::Gltf::Schema::GltfProperty, UnityEngine::ISerializationCallbackReceiver
[System.Serializable]
public class GltfAnimationSampler : Microsoft.MixedReality.Toolkit.Utilities.Gltf.Schema.GltfProperty
[System.Serializable]
public class GltfAnimationSampler : Microsoft.MixedReality.Toolkit.Utilities.Gltf.Schema.GltfProperty, UnityEngine.ISerializationCallbackReceiver
[<System.Serializable>]
type GltfAnimationSampler = class
    inherit GltfProperty
[<System.Serializable>]
type GltfAnimationSampler = class
    inherit GltfProperty
    interface ISerializationCallbackReceiver
Public Class GltfAnimationSampler
Inherits GltfProperty
Public Class GltfAnimationSampler
Inherits GltfProperty
Implements ISerializationCallbackReceiver
Inheritance
GltfAnimationSampler
Attributes
Implements
UnityEngine.ISerializationCallbackReceiver

Constructors

GltfAnimationSampler()

Fields

Extensions

https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/schema/extension.schema.json

(Inherited from GltfProperty)
Extras

https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/schema/extras.schema.json

(Inherited from GltfProperty)
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] &gt;= 0.0, and strictly increasing values, i.e., time[n + 1] &gt; time[n]

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.

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 accessors componentType must be FLOAT.

Properties

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.

Explicit Interface Implementations

ISerializationCallbackReceiver.OnAfterDeserialize()
ISerializationCallbackReceiver.OnBeforeSerialize()

Applies to