Style used by default for GUI.Box controls.
// Modifies only the box style of the current GUISkinvar style : GUIStyle;function OnGUI() { GUI.skin.box = style; GUILayout.Box("This is a box.");}
using UnityEngine;using System.Collections;public class example : MonoBehaviour { public GUIStyle style; void OnGUI() { GUI.skin.box = style; GUILayout.Box("This is a box."); }}
import UnityEngineimport System.Collectionsclass example(MonoBehaviour): public style as GUIStyle def OnGUI(): GUI.skin.box = style GUILayout.Box('This is a box.')