GUISettings.cursorFlashSpeed 光标闪烁速度

var cursorFlashSpeed : float

Description描述

The speed of text field cursor flashes.

文本字段中的光标闪烁速度。

This is how many flashes / second. If you set it to 0, flashing will be disabled. If you set it to -1, the flashing speed will match the system default of the end user.

这是设置多少秒闪烁一次。如果你设置为0,将不闪烁,如果你设置为-1,闪烁速度将匹配最终用户系统的默认值。

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.cursorFlashSpeed = 3;
		str = GUILayout.TextArea(str);
	}
}
var str : String = "This is a string with \n two lines of text";

function OnGUI() {
GUI.skin.settings.cursorFlashSpeed = 3;
	str = GUILayout.TextArea(str);
}
Page last updated: 2011-1-3