Version: 5.6 (switch to 2017.1b)
LanguageEnglish
  • C#
  • JS

Script language

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

GUISkin.settings

Switch to Manual
public GUISettings settings;

Description

Generic settings for how controls should behave with this skin.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { public string str = "This is a string with\ntwo lines of text"; void OnGUI() { GUI.skin.settings.selectionColor = Color.cyan; str = GUILayout.TextArea(str); } }