Animator:setAlpha

Sets the current alpha factor of an animation.

Animator:setAlpha(name, alpha)

Arguments

NameTypeDescription
namestringThe name of the animation.
alphanumberThe alpha of the animation.

Returns

Nothing

Notes

The alpha is a number between 0 and 1 indicating how the animation's pose is blended with other animations. An alpha of 1 means the animation's pose will completely overwrite the existing pose, whereas an alpha of .5 would blend half of the animation's pose with half of the existing pose. This, combined with the animation's priority, allows for fine grained control over how multiple playing animations get blended together.

See also