Animation.playAutomatically 自动播放


var playAutomatically : bool

Description描述

Should the default animation clip (Animation.clip) automatically start playing on startup.

是否在开始的时候自动播放默认的动画(Animation.clip)。

  • C#

  • JavaScript

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


,