Version: 2021.2
言語: 日本語

TouchScreenKeyboard

class in UnityEngine

マニュアルに切り替える

説明

Interface for on-screen keyboards. Only native iPhone, Android, and Windows Store Apps are supported.

This interface allows to display different types of the keyboard: ASCII, Numbers, URL, Email, and others.

Because the appearance of the keyboard has the potential to obscure portions of your user interface, it is up to you to make sure that parts of your user interface are not obscured when the keyboard is being displayed.

TouchScreenKeyboard.visible and TouchScreenKeyboard.area should be used to determine if the keyboard is being shown (activated) and what portion of the screen is using.

Universal Windows Platform: On Universal Windows Apps the touch screen keyboard is supported when physical keyboard is not connected.

Static 変数

areaキーボードで覆われているスクリーンの戻りの位置
hideInputキーボードの上にあるテキスト入力フィールドを非表示にするかどうか
isInPlaceEditingAllowedChecks if the text within an input field can be selected and modified while TouchScreenKeyboard is open.
isSupportedタッチスクリーンキーボードがサポートされているかどうか
visibleReturns true whenever any keyboard is visible on the screen.

変数

activeキーボードを表示したり画面上の特定の位置にスライドするかどうか
canGetSelectionSpecifies whether the TouchScreenKeyboard supports the selection property. (Read Only)
canSetSelectionSpecifies whether the TouchScreenKeyboard supports the selection property. (Read Only)
characterLimitHow many characters the keyboard input field is limited to. 0 = infinite.
selectionGets or sets the character range of the selected text within the string currently being edited.
statusReturns the status of the on-screen keyboard. (Read Only)
targetDisplaySpecified on which display the on-screen keyboard will appear.
textキーボードのインプットフィールドに表示されている文字を返します
typeReturns the TouchScreenKeyboardType of the keyboard.

Static 関数

Openスクリーン上に OS が提供しているネイティブのキーボードを表示します
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961