public float normalizedTime ;

描述

该动画的标准化时间。

值 1 为该动画的末尾。值 0.5 为该动画的中间。

using UnityEngine;
using System.Collections;

public class ExampleScript : MonoBehaviour { public Animation anim;

void Start() { // Fast forward to the middle of the animation anim["Walk"].normalizedTime = 0.5f; } }