ModelData:getNodeMesh
EditReturns the index of the mesh attached to a node. Meshes contain the geometry and material information, whereas the nodes define the hierarchy and transforms. A single mesh can be attached to multiple nodes. Not every node has a mesh.
mesh = ModelData:getNodeMesh(node)Arguments
| Name | Type | Description |
| node | string | number | The name or index of a node. |
Returns
| Name | Type | Description |
| mesh | number | nil |
The index of the node's mesh, or nil if the node does not have a mesh.
|