Unity logo
取消
购物车
应用
Sell Assets

11000+款5星资源

8.5万+用户参与评分

10万+社区成员鼎力支持

每款资源都经过 Unity 审核

首页
工具
输入管理
此内容由第三方提供商托管,该第三方提供商在未接受Targeting Cookies的情况下不允许观看视频。如果您想观看来自这些提供商的视频,请将“Targeting Cookie”的Cookie偏好设置为“是”。
1/2
The package contains a virtual keyboard that supports English, Chinese, numbers, and special characters input. For Chinese input, it supports the Pinyin input method.
可编程渲染管线(SRP)兼容性
Unity可编程渲染管线(SRP)是让您能够通过C#脚本控制渲染的一个功能。SRP是支撑通用渲染管线(URP)和高清渲染管线(HDRP)的底层技术。
Unity版本内置渲染管线通用渲染管线(URP)高清渲染管线(HDRP)
2022.3.20f1
兼容
兼容
不兼容
其他兼容性信息

To be used in VR scene, VR plugin is needed, such as Meta XR All-in-One SDK

undefined

描述

Main Usage

  • Chinese fonts are needed. My recommendation is Noto, which is free.
  • Text Mesh Pro is compulsory.
  • [Optional] If you want to generate a new Chinese dictionary:
    • A Chinese word list under the Python directory, named wordfreq.txt, formatted as [Chinese word]\t[frequency].
    • pip install pinyin and run cn_parser.py.
    • Open Unity Editor, click Tools > Construct Py Prefab to open the generator, input the Chinese word list and hash txt path, and click generate to get the prefab.
      • For example, if the list you generated is Assets\WPinyin\Dictionary\PinyinWords-words.json, then input Assets\WPinyin\Dictionary\PinyinWords.
      • You can also select how many words you need in the list. The words will be selected based on frequency, with high-frequency words having higher priorities.
    • Open the KeyBoard prefab, drag the word prefab you just generated onto the pyCode field.
  • [Optional] If you want to generate a new English word dictionary:
    • An English word list under the Python directory, named en_freq.txt, with a title in the first line, formatted as [Word]\t[PoS]\t[Freq].
    • Run en_parser.py.

Code Usage

  • To set the target input field: KeyBoardManager.SetTargetField(TMP_InputField target).
  • To refresh and add input field focus listener: KeyBoardManager.GetAllInputFields().

Meta data

  • Author: Mingchong Li (email me)
  • Date: 10/8/2024
  • Version: 0.3
技术细节
  • English Input: By inputting the initial characters, related words will be generated as candidates and sorted by frequency.
  • Chinese Input: By inputting partial letters (such as "nh" or "nhao"), the corresponding candidates (such as "ni hao") will be generated and sorted by frequency. To retrieve Chinese word candidates, which may number in the hundreds, they are loaded asynchronously.
  • Special Characters and Numbers Input: To input numbers, users can press the "123" button to get the number keyboard. Then, press "#+=" to access the full keyboard of special characters.
  • Virtual Keyboard: The virtual keyboard uses UGUI buttons, making it compatible with basic scenes and VR scenes.
  • Sample Scenes: Includes a sample scene for testing the keyboard and Input Method (IM) and a scene for testing the keyboard in a VR environment.
  • Dictionary Parser: Parses Chinese and English words and generates dictionaries for Unity use.
  • Dictionary Importer: Imports dictionaries using a Unity Editor tool.

Virtual keyboard with Chinese Input Method Editor(IME)

(3)
14 users have favourite this asset
(14)
FREE
许可证类型
文件大小
33.8 MB
最新版本
0.3
最新发布日期
2024年9月3日
原始 Unity 版本
2022.3.20
高品质资源
11000+款5星资源
深受用户信赖
8.5万+用户参与评分
强大的社区支持
10万+社区成员鼎力支持
Unity logo
语言
反馈
合作伙伴计划
合作伙伴
USD
EUR
Copyright © 2025 Unity Technologies
所有价格不包含税
USD
EUR