Input.imeCompositionMode IME组合方式

static var imeCompositionMode : IMECompositionMode

Description描述

Controls enabling and disabling of IME input composition.

控制IME输入组合的启用和禁用。

Some languages use complex input methods which involve opening windows to insert characters. Typically, this is not desirable while playing a game, as games may just interpret key strokes as game input, not as text. By default, Unity will enable IME composition when in text fields, and disable it otherwise. However, when you want to implement your own input GUI, you may want to have control over this yourself, which is possible using the imeCompositionMode property. Set it to Auto for the default behavior, or On or Off to explicitly enable or disable IME composition.

一些语言使用复杂的输入方法,其中涉及到打开窗户插入字符。通常,玩游戏时这是不理想的,对于游戏可能只是解释按键作为游戏输入,而不是文本。默认,当在文本字段,Unity启用IME组合,并禁用其他的。然而,当你想实现自己的输入图形用户界面,来替代这个控制,要使用到imeCompositionMode属性。可以设置为自动(默认行为),或开或关,明确地启用或禁用输入法组成。

最后修改:2011年10月6日 Thursday 17:32

本脚本参考基于Unity 3.4.1f5

英文部分版权属©Unity公司所有,中文部分© Unity圣典 版权所有,未经许可,严禁转载 。