GUISkin.box 盒子

var box : GUIStyle

Description描述

Style used by default for GUI.Box controls.

用于 GUI.Box控件的默认样式。

// Modifies only the box style of the current GUISkin
//修改当前GUISkin的box样式
var style : GUIStyle;

function OnGUI() {
	GUI.skin.box = style;
	GUILayout.Box("This is a box.");
}
最后修改:2011年1月25日 Tuesday 15:50

本脚本参考基于Unity 3.4.1f5

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