Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • Boo

Script language

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

GUISettings.cursorColor

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