docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class NodeBase

    An object defining the hierarchy relations and the local transform of its content.

    Inheritance
    object
    NamedObject
    NodeBase
    NodeBase<TExtensions>
    Inherited Members
    NamedObject.name
    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 abstract class NodeBase : NamedObject

    Fields

    camera

    Camera index

    Declaration
    public int camera
    Field Value
    Type Description
    int

    children

    The indices of this node's children.

    Declaration
    public uint[] children
    Field Value
    Type Description
    uint[]

    matrix

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

    Declaration
    public float[] matrix
    Field Value
    Type Description
    float[]

    mesh

    The index of the mesh in this node.

    Declaration
    public int mesh
    Field Value
    Type Description
    int

    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
    float[]

    scale

    The node's non-uniform scale.

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

    skin

    The index of the skin (in Skins referenced by this node.

    Declaration
    public int skin
    Field Value
    Type Description
    int

    translation

    The node's translation.

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

    Properties

    Extensions

    Node extensions

    Declaration
    public abstract NodeExtensions Extensions { get; }
    Property Value
    Type Description
    NodeExtensions

    Methods

    JsonUtilityCleanup()

    Cleans up invalid parsing artifacts created by GltfJsonUtilityParser. If you inherit a custom Node class (for use with GltfImport.LoadWithCustomSchema<T>(string,ImportSettings,System.Threading.CancellationToken) ) you can override this method to perform sanity checks on the deserialized, custom properties.

    Declaration
    public virtual void JsonUtilityCleanup()

    Extension Methods

    NodeExtension.GetTransform(NodeBase, out Vector3, out Quaternion, out Vector3)
    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)