GUISettings.cursorColor

var cursorColor : Color

Description

The color of the cursor in text fields.

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