Versions with this page:
Versions without this page:
此组件附加到的游戏对象。始终将组件附加到游戏对象。
using UnityEngine; using System.Collections;public class ExampleClass : MonoBehaviour { void Example() { print(gameObject.name); } }