ModelData:getMeshMaterial
EditReturns the index of the material applied to a mesh.
material = ModelData:getMeshMaterial(mesh)
Arguments
Name | Type | Description |
mesh | number | The index of a mesh. |
Returns
Name | Type | Description |
material | number | The index of the material applied to the mesh, or nil if the mesh does not have a material. |