static var none : GUIStyle
Description描述
Shortcut for an empty GUIStyle.
空GUIStyle的简码。
This style contains no decoration and just renders everything in the default font.
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
void OnGUI() {
GUI.Button(new Rect(0, 0, 250, 100), "I'm very bare", GUIStyle.none);
}
}
function OnGUI () {
// Make a button with no decoration
//使按钮不带有任何装饰,也就是不应用样式
GUI.Button(Rect(0,0,250,100), "I'm very bare", GUIStyle.none);
}