Component.animation 动画


var animation : Animation

Description描述

The Animation attached to this GameObject (null if there is none attached).

Animation附加到GameObject(游戏物体)(如无附加则为空)。

  • C#

  • JavaScript

using UnityEngine;using System.Collections;public class example : MonoBehaviour {public void Awake() {animation.Play();}}
animation.Play();


,