AnimationState.normalizedSpeed 规范化速度
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.SyncLayer instead.
它常用于混合两个动画时同步播放速度,大多情况下用Animation.SyncLayer更佳。
C#
JavaScript
using UnityEngine;using System.Collections;public class example : MonoBehaviour {public void Awake() {animation["Run"].normalizedSpeed = animation["Walk"].speed;}}
// Sync run and walk speed//同步run 和walk的速度animation["Run"].normalizedSpeed = animation["Walk"].speed;