Skip to content

format

typescript
AnimationState.normalizedSpeed

class: AnimationState

description

(Read Only) The normalized playback speed of the animation (commonly used to synchronize playback speed between two animations during blending).

parameter

param_nametypedescription

reture

typedescription
numberThe normalized playback speed of the animation.

code example

typescript
let go = new GameObject("Animation");
let anim = go.AddComponent<Animation>(Animation) as Animation;
let clip = Resources.Load<AnimationClip>(AnimationClip, "E5F0A8E2A8894F095DA73FD033B0AF07");
anim.AddClip(clip, "newClip");
let state = anim.GetState("newClip");
state.normalizedSpeed;