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 meshNumeration = 0)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | gameObject | GameObject that holds the Mesh. |
| 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 | meshNumeration | Per glTF mesh MeshResult numeration. A glTF mesh is converted into one or more MeshResults which are numbered consecutively. |