docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method AddMeshToNode

    AddMeshToNode(int, Mesh, int[])

    Assigns a mesh to a previously added node

    Declaration
    void AddMeshToNode(int nodeId, Mesh uMesh, int[] materialIds)
    Parameters
    Type Name Description
    int nodeId

    Index of the node to add the mesh to

    Mesh uMesh

    Unity mesh to be assigned and exported

    int[] materialIds

    glTF materials IDs to be assigned (multiple in case of sub-meshes)

    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)