Legacy Documentation: Version 5.6 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

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

AnimationState.normalizedSpeed

public float normalizedSpeed;

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.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour {

public Animation anim;

void Start() { anim = GetComponent<Animation>(); anim["Run"].normalizedSpeed = anim["Walk"].normalizedSpeed; } }