Description 描述
Get a named GUIStyle.
using UnityEngine;
public class Example : MonoBehaviour { bool b;
void OnGUI() { b = GUILayout.Toggle(b, "A toggle button", GUI.skin.GetStyle("Button")); } }
Get a named GUIStyle.
using UnityEngine;
public class Example : MonoBehaviour { bool b;
void OnGUI() { b = GUILayout.Toggle(b, "A toggle button", GUI.skin.GetStyle("Button")); } }