AnimationState.normalizedTime 规范化时间

var normalizedTime : float


The normalized time of the animation.


A value of 1 is the end of the animation. A value of 0.5 is the middle of the animation.

1是动画结尾. 0.5是动画中间.

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public void Awake() {
		animation["Walk"].normalizedTime = 0.5F;
// Fast forward to the middle of the animation
// 快进到动画中部

animation["Walk"].normalizedTime = 0.5;
Page last updated: 2011-1-7