GUISettings.selectionColor

var selectionColor : Color

Description

The color of the selection rect in text fields.

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