LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

This version of Unity is unsupported.

Animator.velocity

Switch to Manual
public Vector3 velocity;

Description

Gets the avatar velocity for the last evaluated frame.

Animator.applyRootMotion must be enabled for velocity to be calculated.