Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

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

GUISettings.cursorColor

Switch to Manual
public var cursorColor: Color;

Description

The color of the cursor in text fields.

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