natiny_model_get_bone_count

C
uint32_t natiny_model_get_bone_count(NatinyModel model);

Returns how many bones this model's skeleton has, which is the joint count of its mesh.

Parameters

Name Type Description
model NatinyModel Model handle

Returns

Type Description
uint32_t Bone count; 0 when the model's mesh has no skeleton

Example

C
uint32_t bones = natiny_model_get_bone_count(hero);