Model

self:get_animation_layer_count

Shared

Retrieves the number of animation layers on the model

Syntax

local count = self:get_animation_layer_count()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
intcountNumber of animation layers

Examples

Get the number of animation layers
core.model.load("character", "models/character.glb")

local entity = core.model.create("character")

core.engine.print("info", "Layers:", entity:get_animation_layer_count())

On this page