natiny_animator_set_weight

C
void natiny_animator_set_weight(NatinyAnimator animator, float weight, float fade);

Sets how much of the final pose this layer claims, over whatever the layers below it left, reaching it over fade seconds.

Parameters

Name Type Description
animator NatinyAnimator Animator handle from natiny_animator_create
weight float 0.0f for silent, 1.0f to win outright; clamped to that range
fade float Seconds to ramp there over; values at or below 0.0f set it at once

Example

C
natiny_animator_set_weight(arms, 1.0f, 0.25f);