言語: 日本語
  • C#
  • JS
  • Boo

スクリプト言語

お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。

TouchScreenKeyboard.done

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Sumbission failed

For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

public var done: bool;
public bool done;
public done as bool

Description

入力の処理が終了したかどうか (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 it's 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.done)
			print ("User input is: " + text);
		if(keyboard)
			text = keyboard.text;
	}