Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

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

InputField.caretBlinkRate

Switch to Manual
public var caretBlinkRate: float;

Description

The blinking rate of the input caret, defined as the number of times per second it changes state between visible and not visible.

#pragma strict
// Required when Using UI elements.
public class Example {
	public var mainInputField;
	function Start() {
		//Changes the caret blink rate to 3.5f
		mainInputField.caretBlinkRate = 3.5f;
	}
}