Legacy Documentation: Version 5.2
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

GUIStyle.onActive

Switch to Manual
public GUIStyleState onActive;

Description

Rendering settings for when the element is turned on and pressed down.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void OnGUI() { GUI.skin.button.onActive.textColor = Color.yellow; } }