natiny_mesh_get_skinned
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
if (natiny_mesh_get_skinned(hero_mesh)) {
animator = natiny_animator_create(hero);
}