natiny_mesh_get_skinned

C
bool natiny_mesh_get_skinned(NatinyMesh mesh);

Returns whether this mesh came with a skeleton, and so whether a model built on it can be animated.

Parameters

Name Type Description
mesh NatinyMesh Mesh handle

Returns

Type Description
bool true when the glTF file carried at least one skin; false for an invalid handle

Example

C
if (natiny_mesh_get_skinned(hero_mesh)) {
    animator = natiny_animator_create(hero);
}