Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


cursorColor

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

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.IMGUIModule
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); }}