Documentation

Unity Engine

Download Unity

Unity Engine

cursorColor

The color of the cursor in text fields.
Read time 1 minuteLast updated 3 days ago

Definition

public Color cursorColor { get; set; }

Examples

using UnityEngine;public class Example : MonoBehaviour{ // Set the cursor color to Cyan. string str = "This is a string with \n two lines of text"; void OnGUI() { GUI.skin.settings.cursorColor = Color.cyan; str = GUILayout.TextArea(str); }}