GUISettings.selectionColor 选择颜色
var selectionColor : Color
Description描述
The color of the selection rect in text fields.
文本字段选择矩形的颜色。
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.selectionColor = Color.cyan;
str = GUILayout.TextArea(str);
}
}
// Sets the selection color to cyan
//设置选择颜色为青色
var str : String = "This is a string with \n two lines of text";
function OnGUI() {
GUI.skin.settings.selectionColor = Color.cyan;
str = GUILayout.TextArea(str);
}
最后修改:2011年1月3日 Monday 21:21