Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

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

GUISettings.selectionColor

Switch to Manual
public var selectionColor: Color;

Description

The color of the selection rect in text fields.

	// Sets the selection color to cyan
	var str : String = "This is a string with \n two lines of text";
	
	function OnGUI() { 
		GUI.skin.settings.selectionColor = Color.cyan;
		str = GUILayout.TextArea(str);
	}