Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

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

AnimationState.normalizedSpeed

Switch to Manual
public var normalizedSpeed: float;

Description

The normalized playback speed.

This is most commonly used to synchronize playback speed when blending between two animations. In most cases it is easier and better to use Animation Layer syncing instead.

var anim: Animation;

function Start() { anim = GetComponent.<Animation>();

// Synchronise run and walk speed. anim["Run"].normalizedSpeed = anim["Walk"].speed; }