Component.guiTexture 界面纹理

var guiTexture : GUITexture

Description描述

The GUITexture attached to this GameObject (Read Only). (null if there is none attached)

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

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public void Awake() {
		guiTexture.color = Color.blue;
	}
}
guiTexture.color = Color.blue;
最后修改:2010年12月11日 Saturday 2:24

本脚本参考基于Unity 3.4.1f5

英文部分版权属©Unity公司所有,中文部分© Unity圣典 版权所有,未经许可,严禁转载 。