Animator:getSpeed

Returns the speed factor for an animation or the Animator's global speed factor.

Get the speed of a specific animation.

speed = Animator:getSpeed(name)

Arguments

NameTypeDescription
namestringThe name of the animation.

Returns

NameTypeDescription
speednumberThe current speed multiplier.

Get the global speed multiplier for the Animator.

speed = Animator:getSpeed()

Arguments

None

Returns

NameTypeDescription
speednumberThe current speed multiplier.

See also