mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0

    Show / Hide Table of Contents

    Class GltfNode

    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

    Inheritance
    Object
    GltfProperty
    GltfChildOfRootProperty
    GltfNode
    Inherited Members
    GltfChildOfRootProperty.name
    GltfProperty.Extensions
    GltfProperty.Extras
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Microsoft.MixedReality.Toolkit.Utilities.Gltf.Schema
    Assembly: cs.temp.dll.dll
    Syntax
    public class GltfNode : GltfChildOfRootProperty

    Fields

    camera

    The index of the camera referenced by this node.

    Declaration
    public int camera
    Field Value
    Type Description
    Int32

    camera

    The index of the camera referenced by this node.

    Declaration
    public int camera
    Field Value
    Type Description
    Int32

    children

    The indices of this node's children.

    Declaration
    public int[] children
    Field Value
    Type Description
    Int32[]

    children

    The indices of this node's children.

    Declaration
    public int[] children
    Field Value
    Type Description
    Int32[]

    matrix

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

    Declaration
    public double[] matrix
    Field Value
    Type Description
    Double[]

    matrix

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

    Declaration
    public double[] matrix
    Field Value
    Type Description
    Double[]

    mesh

    The index of the mesh in this node.

    Declaration
    public int mesh
    Field Value
    Type Description
    Int32

    mesh

    The index of the mesh in this node.

    Declaration
    public int mesh
    Field Value
    Type Description
    Int32

    rotation

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

    Declaration
    public float[] rotation
    Field Value
    Type Description
    Single[]

    rotation

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

    Declaration
    public float[] rotation
    Field Value
    Type Description
    Single[]

    scale

    The node's non-uniform scale.

    Declaration
    public float[] scale
    Field Value
    Type Description
    Single[]

    scale

    The node's non-uniform scale.

    Declaration
    public float[] scale
    Field Value
    Type Description
    Single[]

    skin

    The index of the skin referenced by this node.

    Declaration
    public int skin
    Field Value
    Type Description
    Int32

    skin

    The index of the skin referenced by this node.

    Declaration
    public int skin
    Field Value
    Type Description
    Int32

    translation

    The node's translation.

    Declaration
    public float[] translation
    Field Value
    Type Description
    Single[]

    translation

    The node's translation.

    Declaration
    public float[] translation
    Field Value
    Type Description
    Single[]

    useTRS

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

    Declaration
    public bool useTRS
    Field Value
    Type Description
    Boolean

    useTRS

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

    Declaration
    public bool useTRS
    Field Value
    Type Description
    Boolean

    weights

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

    Declaration
    public double[] weights
    Field Value
    Type Description
    Double[]

    weights

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

    Declaration
    public double[] weights
    Field Value
    Type Description
    Double[]

    Properties

    Matrix

    Declaration
    public Matrix4x4 Matrix { get; set; }
    Property Value
    Type Description
    Matrix4x4

    Matrix

    Declaration
    public Matrix4x4 Matrix { get; set; }
    Property Value
    Type Description
    Matrix4x4
    In This Article
    • Fields
      • camera
      • camera
      • children
      • children
      • matrix
      • matrix
      • mesh
      • mesh
      • rotation
      • rotation
      • scale
      • scale
      • skin
      • skin
      • translation
      • translation
      • useTRS
      • useTRS
      • weights
      • weights
    • Properties
      • Matrix
      • Matrix
    Back to top Generated by DocFX