none
Shortcut for an empty GUIStyle.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.IMGUIModule
public static GUIStyle none { get; }
Remarks
This style contains no decoration and just renders everything in the default font.
Examples
using UnityEngine;public class Example : MonoBehaviour{ void OnGUI() { // Make a button with no decoration GUI.Button(new Rect(0, 0, 250, 100), "Basic Button", GUIStyle.none); }}