GUISkin.button 按钮

var button : GUIStyle

Description描述

Style used by default for GUI.Button controls.

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

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public GUIStyle style;
	void OnGUI() {
		GUI.skin.button = style;
		GUILayout.Button("This is a button.");
	}
}
// Modifies only the button style of the current GUISkin
//修改当前GUISkin的button样式

var style : GUIStyle;

function OnGUI() {
	GUI.skin.button = style;
	GUILayout.Button("This is a button.");
}
Page last updated: 2011-1-25