Version: 2023.1
public GUIStyle box ;

描述

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

using UnityEngine;

public class Example : MonoBehaviour { // Modifies only the box style of the current GUISkin

GUIStyle style;

void OnGUI() { GUI.skin.box = style; GUILayout.Box("This is a box."); } }

Did you find this page useful? Please give it a rating: