返回介绍

Input.compositionString 输入法组合字符串

发布于 2019-12-18 15:37:52 字数 1248 浏览 1240 评论 0 收藏 0

JavaScript => public static var compositionString: string;
C# => public static string compositionString;

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. See Also: Input.imeCompositionMode, Input.compositionCursorPos.

在某些语言如中文,日文或韩文,文本是通过键入多个键输入来生成一个或多个字符。这些字符在屏幕上可视化组合,由用户键入。当使用Unity内置的GUI系统用于文本输入,Unity将考虑显示组合字符串,由用户键入。如果想实现自己的图形用户界面,必须考虑显示字符串在当前鼠标位置。当IME组合使用时,该组合字符串才更新。

JavaScript:

未提供代码

C#:

未提供代码

Input

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文