Component.guiText 界面文本


var guiText : GUIText

Description描述

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

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

  • C#

  • JavaScript

using UnityEngine;using System.Collections;public class example : MonoBehaviour {public void Awake() {guiText.text = "Hello World";}}
guiText.text = "Hello World";


,