- accelerationEventCount
- accelerationEvents
- acceleration
- anyKeyDown
- anyKey
- compositionCursorPos
- compositionString
- deviceOrientation
- eatKeyPressOnTextFieldFocus
- GetAccelerationEvent
- GetAxisRaw
- GetAxis
- GetButtonDown
- GetButtonUp
- GetButton
- GetJoystickNames
- GetKeyDown
- GetKeyUp
- GetKey
- GetMouseButtonDown
- GetMouseButtonUp
- GetMouseButton
- GetPosition
- GetRotation
- GetTouch
- gyro
- imeCompositionMode
- inputString
- isGyroAvailable
- mousePosition
- multiTouchEnabled
- ResetInputAxes
- touchCount
- touches
Input.compositionString 组合字符串
static var compositionString : String
Description描述
The current IME composition string being typed by the user.
当前用户正在输入的IME组合字符串。
In some languages such as Chinese, Japanese or Korean, text is input by typing multiple keys to generate one or multiple characters. These characters are visually composed on the screen as the user types. When using Unity's built in GUI system for text input, Unity will take care of displaying the composition strings as the users types. If you want to implement your own GUI, however, you need to take care of displaying the string at the current cursor position. The composition string is only updated when IME compositing is used. See Input.imeCompositionMode for more info.
在某些语言如中文,日文或韩文,文本是通过键入多个键输入来生成一个或多个字符。这些字符在屏幕上可视化组合,由用户键入。当使用Unity内置的GUI系统用于文本输入,Unity将考虑显示组合字符串,由用户键入。如果想实现自己的图形用户界面,必须考虑显示字符串在当前鼠标位置。当IME组合使用时,该组合字符串才更新。
参见就: Input.imeCompositionMode, Input.compositionCursorPos