GameObject.guiTexture 界面纹理

var guiTexture : GUITexture

Description描述

The GUITexture attached to this GameObject (Read Only). (null if there is none attached)
附属于这个游戏物体上的GUI纹理(只读)。(如果没有则为空)

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public void Awake() {
		guiTexture.color = Color.blue;
	}
}
guiTexture.color = Color.blue;
Page last updated: 2010-12-13