Version: 2018.3 (switch to 2019.1)
LanguageEnglish
  • C#

GUIStyle.name

Switch to Manual
public string name;

Description

The name of this GUIStyle. Used for getting them based on name.

using UnityEngine;

public class Example : MonoBehaviour { // Prints the name of the style.

void OnGUI() { Debug.Log(GUI.skin.button.name); } }

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