文档

Unity Engine

Unity Engine

none

Shortcut for an empty GUIStyle.
阅读时间1 分钟最后更新于 1 天前

Definition

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); }}