GameObject
- active
- AddComponent.<T>
- AddComponent
- animation
- audio
- BroadcastMessage
- camera
- collider
- CompareTag
- constantForce
- CreatePrimitive
- FindGameObjectsWithTag
- FindWithTag
- Find
- GameObject
- GetComponent.<T>
- GetComponentInChildren.<T>
- GetComponentInChildren
- GetComponents.<T>
- GetComponentsInChildren.<T>
- GetComponentsInChildren
- GetComponents
- GetComponent
- guiTexture
- guiText
- hingeJoint
- isStatic
- layer
- light
- networkView
- particleEmitter
- renderer
- rigidbody
- SampleAnimation
- SendMessageUpwards
- SendMessage
- SetActiveRecursively
- tag
- transform
GameObject.guiText 界面文本
var guiText : GUIText
Description描述
The GUIText attached to this GameObject (Read Only). (null if there is none attached)
附属于这个游戏物体上的GUI字体(只读)。(如果没有则为空)
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
public GameObject other;
public void Awake() {
other.guiText.text = "HelloWorld";
}
}
var other : GameObject;
other.guiText.text = "HelloWorld";
最后修改:2010年12月13日 Monday 16:15