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.button

Switch to Manual
public GUIStyle button;

Description

Style used by default for GUI.Button controls.

using UnityEngine;
using System.Collections;

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