GUISettings.tripleClickSelectsLine 三击选择整行

var tripleClickSelectsLine : bool


Should triple-clicking select whole text in text fields.


By default is set to true.


using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public string str = "This is a string with \n two lines of text";
	void OnGUI() { = false;
		str = GUILayout.TextArea(str);
// Disables line selecting with triple click on the text area
var str : String = "This is a dg string with \n two lines of text";

function OnGUI() { = false;
	str = GUILayout.TextArea(str);
Page last updated: 2011-1-3