GltfNode Class

Definition

A node in the node hierarchy. When the node contains skin, all mesh.primitives must contain JOINT and WEIGHT attributes. A node can have either a matrix or any combination of translation/rotation/scale (TRS) properties. TRS properties are converted to matrices and postmultiplied in the T * R * S order to compose the transformation matrix; first the scale is applied to the vertices, then the rotation, and then the translation. If none are provided, the transform is the Identity. When a node is targeted for animation (referenced by an animation.channel.target), only TRS properties may be present; matrix will not be present. https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/schema/node.schema.json

C++
public ref class GltfNode : Microsoft::MixedReality::Toolkit::Utilities::Gltf::Schema::GltfChildOfRootProperty
Inheritance
Attributes

Constructors

Fields

camera

The index of the camera referenced by this node.

children

The indices of this node's children.

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

A floating-point 4x4 transformation matrix stored in column-major order.

mesh

The index of the mesh in this node.

name

The user-defined name of this object. This is not necessarily unique, e.g., an accessor and a buffer could have the same name, or two accessors could even have the same name.

(Inherited from GltfChildOfRootProperty)
rotation

The node's unit quaternion rotation in the order (x, y, z, w), where w is the scalar.

scale

The node's non-uniform scale.

skin

The index of the skin referenced by this node.

translation

The node's translation.

useTRS

If true, extracts transform, rotation, scale values from the Matrix4x4. Otherwise uses the Transform, Rotate, Scale directly as specified by the node.

weights

The weights of the instantiated Morph Target. Number of elements must match number of Morph Targets of used mesh.

Properties

Extension Methods

Applies to

Product Versions
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0