Structs§
- Unity
SubMesh - A single glTF primitive converted to a Unity sub-mesh.
Indices are pre-offset to reference the shared vertex array on
crate::unity_mesh::UnityMesh.
Functions§
- gltforge_
mesh_ ⚠submesh_ count - Return the number of sub-meshes in mesh
mesh_idx. - gltforge_
mesh_ ⚠submesh_ indices_ u16 - Return a pointer to the
u16index data for sub-meshsubmeshof meshmesh_idx. Returns null if the mesh usesu32indices or the indices are out of range.out_lenreceives the number of index values (not bytes). - gltforge_
mesh_ ⚠submesh_ indices_ u32 - Return a pointer to the
u32index data for sub-meshsubmeshof meshmesh_idx. Returns null if the mesh usesu16indices or the indices are out of range.out_lenreceives the number of index values (not bytes). - gltforge_
mesh_ ⚠submesh_ material - Return the
GLTF/PbrMetallicRoughnessmaterial index for sub-meshsubmeshof meshmesh_idx, or-1if the primitive had no material. The index maps intocrate::unity_gltf::UnityGltf::pbr_metallic_roughness.