ドキュメント

Unity Engine

Unity Engine

done

Specifies if input process was finished. (Read Only)
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
注意
Deprecated. Property done is deprecated, use status instead
public bool done { get; }

Remarks

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.

Examples

using UnityEngine;public class Example : MonoBehaviour{ // Opens a keyboard and shows what has been typed. TouchScreenKeyboard keyboard; public string text = ""; void Start() { keyboard = TouchScreenKeyboard.Open(text, TouchScreenKeyboardType.Default); } void Update() { if (keyboard != null && keyboard.status == TouchScreenKeyboard.Status.Done) { text = keyboard.text; print("User input is: " + text); } }}