GUISettings.cursorColor 光标颜色
var cursorColor : Color
Description描述
The color of the cursor 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.cursorColor = Color.cyan;
str = GUILayout.TextArea(str);
}
}
// Set the cursor color to Cyan.
//设置光标颜色为青色
var str : String = "This is a string with \n two lines of text";
function OnGUI() {
GUI.skin.settings.cursorColor = Color.cyan;
str = GUILayout.TextArea(str);
}
最后修改:2011年1月3日 Monday 21:19