Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


doubleClickSelectsWord

Should double-clicking select words in text fields.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.IMGUIModule
public bool doubleClickSelectsWord { get; set; }

Remarks

By default is set to true.

Examples

using UnityEngine;public class Example : MonoBehaviour{ string str = "This is a string with \n two lines of text"; void OnGUI() { GUI.skin.settings.doubleClickSelectsWord = false; str = GUILayout.TextArea(str); }}