docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method AddNode

    AddNode(float3?, quaternion?, float3?, uint[], string)

    Adds a node to the glTF

    Declaration
    uint AddNode(float3? translation = null, quaternion? rotation = null, float3? scale = null, uint[] children = null, string name = null)
    Parameters
    Type Name Description
    float3? translation

    Local translation of the node (in Unity-space)

    quaternion? rotation

    Local rotation of the node (in Unity-space)

    float3? scale

    Local scale of the node (in Unity-space)

    uint[] children

    Array of node indices that are parented to this newly created node

    string name

    Name of the node

    Returns
    Type Description
    uint

    glTF node index

    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)