Skip to main content

Module unity_node

Module unity_node 

Source

Structs§

UnityNode
A Unity-shaped glTF node. References children and meshes by index, mirroring the glTF node structure.

Functions§

gltforge_node_child
Return the node index of the slot-th child of node node_idx. Returns u32::MAX if out of range.
gltforge_node_child_count
Return the number of children of node node_idx.
gltforge_node_count
Return the total number of nodes in the document.
gltforge_node_mesh_count
Return the number of mesh references on node node_idx.
gltforge_node_mesh_index
Return the mesh index of the slot-th mesh reference on node node_idx. Returns u32::MAX if out of range.
gltforge_node_name
Return the name of node node_idx as UTF-8 bytes, or null if absent.
gltforge_node_transform
Write the local transform of node node_idx into the caller-supplied 10-element f32 buffer.