Model
self:get_animation_layer_weight
SharedRetrieves the blend weight of an animation layer
Syntax
local weight = self:get_animation_layer_weight(
layer
)Parameters
| Type | Name | Description |
|---|---|---|
int | layer | Index of the animation layer to query |
Returns
| Type | Name | Description |
|---|---|---|
float | weight | Current blend weight of the layer |
Examples
core.model.load("character", "models/character.glb")
local entity = core.model.create("character")
core.engine.print("info", "Weight:", entity:get_animation_layer_weight(0))