Model:getNodeMesh

Edit

Returns 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 = Model:getNodeMesh(node)

Arguments

NameTypeDescription
nodestring | number The name or index of a node.

Returns

NameTypeDescription
meshnumber | nil The index of the node's mesh, or nil if the node does not have a mesh.

See also