docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Delegate GameObjectInstantiator.MeshAddedDelegate

    Provides information for when a mesh was added to a node GameObject

    Namespace: GLTFast
    Assembly: glTFast.dll
    Syntax
    public delegate void GameObjectInstantiator.MeshAddedDelegate(GameObject gameObject, uint nodeIndex, string meshName, MeshResult meshResult, uint[] joints = null, uint? rootJoint = null, float[] morphTargetWeights = null, int primitiveNumeration = 0)
    Parameters
    Type Name Description
    GameObject gameObject

    GameObject that holds the Msh.

    uint nodeIndex

    Index of the node

    string meshName

    Mesh's name

    MeshResult meshResult

    The converted Mesh

    uint[] joints

    If a skin was attached, the joint indices. Null otherwise

    uint? rootJoint

    Root joint node index, if present

    float[] morphTargetWeights

    Morph target weights, if present

    int primitiveNumeration

    Primitives are numerated per Node, starting with 0

    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)