Version: 5.3 (switch to 5.4b)
IdiomaEnglish
  • C#
  • JS

Idioma de script

Selecciona tu lenguaje de programación favorito. Todos los fragmentos de código serán mostrados en este lenguaje.

TouchScreenKeyboard.done

Sugiere un cambio

¡Éxito!

Gracias por ayudarnos a mejorar la calidad de la documentación de Unity. A pesar de que no podemos aceptar todas las sugerencias, leemos cada cambio propuesto por nuestros usuarios y actualizaremos los que sean aplicables.

Cerrar

No se puedo enviar

Por alguna razón su cambio sugerido no pudo ser enviado. Por favor <a>intente nuevamente</a> en unos minutos. Gracias por tomarse un tiempo para ayudarnos a mejorar la calidad de la documentación de Unity.

Cerrar

Cancelar

Cambiar al Manual
public var done: bool;
public bool done;

Descripción

Specifies if input process was finished. (Read Only)

Keyboard input process can be finished either by user tapping "Done" button or script setting active property to false. Note that keyboard might be temporarily inactive (either by sliding in/out due to orientation change or by appearance of another keyboard), however its input process might still be not finished and will be resumed automatically.

	// Opens a keyboard and shows what has been typed.

private var keyboard : TouchScreenKeyboard; var text : String = "";

function Start() { keyboard = TouchScreenKeyboard.Open(text, TouchScreenKeyboardType.Default); } function Update() { if (keyboard != null && keyboard.done) { text = keyboard.text; print ("User input is: " + text); } }