Version: 5.6 (switch to 2017.1b)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

GUISkin.box

Switch to Manual
public GUIStyle box;

Description

Style used by default for GUI.Box controls.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { public GUIStyle style; void OnGUI() { GUI.skin.box = style; GUILayout.Box("This is a box."); } }