natiny.mesh.get_animation_count

Lua
natiny.mesh.get_animation_count(mesh) -> count

Returns how many clips the glTF file carried for this skeleton.

Parameters

Name Type Description
mesh number Mesh handle

Returns

Type Description
integer Clip count; 0 when the file carried none

Example

Lua
print(natiny.mesh.get_animation_count(hero_mesh) .. " clips")