Version: 2018.4
public GUIStyle toggle ;

説明

GUI.Toggle で使用されるスタイル

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"); } }