Version: 2020.3
언어: 한국어
public GUIStyle toggle ;

설명

Style used by default for GUI.Toggle controls.

using UnityEngine;

public class Example : MonoBehaviour { // Modifies only the toggle style of the current GUISkin

GUIStyle style; public bool val = false;

void OnGUI() { GUI.skin.toggle = style; val = GUILayout.Toggle(val, "A Toggle control"); } }