기술 자료

Unity Engine

Unity Engine

doubleClickSelectsWord

Should double-clicking select words in text fields.
읽는 시간 1분최근 업데이트: 한 달 전

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