GUITexture.texture 纹理
var texture : Texture
Description描述
The texture used for drawing.
用于绘制的纹理。
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
public Texture2D someTexture;
public void Awake() {
guiTexture.texture = someTexture;
}
}
// Assign someTexture to the guiTexture
//指定一个纹理到界面纹理
var someTexture : Texture2D;
guiTexture.texture = someTexture;
最后修改:2011年1月24日 Monday 1:06