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;
Page last updated: 2011-1-24