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.shouldHideMobileInput

Switch to Manual
public var shouldHideMobileInput: bool;

Description

Should the mobile keyboard input be hidden.

#pragma strict
// Required when Using UI elements.
public class Example {
	public var mainInputField;
	public function Start() {
		//This setting can be toggled in the inspector.
		mainInputField.shouldHideMobileInput = true;
	}
}