Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

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.

	var str : String = "This is a string with \n two lines of text";
	
	function OnGUI() { 
		GUI.skin.settings.cursorFlashSpeed = 3;
		str = GUILayout.TextArea(str);
	}