Animation.clip 剪辑

var clip : AnimationClip

Description描述

The default animation.

默认的动画剪辑。

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public IEnumerator Awake() {
		animation.Play(animation.clip.name);
		yield return new WaitForSeconds(animation.clip.length);
	}
}
animation.Play(animation.clip.name);
// Wait for the animation to have finished
// 等待动画完成。
yield WaitForSeconds (animation.clip.length);
Page last updated: 2011-1-12