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;
}
}
using UnityEngine; using System.Collections; using UnityEngine.UI; // Required when Using UI elements.
public class Example : MonoBehaviour { public InputField mainInputField;
void Start() { //Changes the caret blink rate to 3.5f mainInputField.caretBlinkRate = 3.5f; } }