GUISettings.tripleClickSelectsLine 三击选择整行
var tripleClickSelectsLine : bool
Description描述
Should triple-clicking select whole text in text fields.
在文本字段可以三次点击选择正行文本。
By default is set to true.
默认设置为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() {
GUI.skin.settings.tripleClickSelectsLine = 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() {
GUI.skin.settings.tripleClickSelectsLine = false;
str = GUILayout.TextArea(str);
}
最后修改:2011年1月3日 Monday 20:55