GetStyle(string)
Get a named GUIStyle.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.IMGUIModule
public GUIStyle GetStyle(string styleName)
Parameters
Returns
Type | Description |
|---|---|
| GUIStyle |
Examples
using UnityEngine;public class Example : MonoBehaviour{ bool b; void OnGUI() { b = GUILayout.Toggle(b, "A toggle button", GUI.skin.GetStyle("Button")); }}