Skip to content

Update InputAdaptation.md #950

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 22, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion Design/InputAdaptation.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
# 输入法适配

### 支持2022和团结引擎的 Input Field 组件自动适配,低版本或者其他组件暂不支持自动适配
### 自动适配

​ 支持2022和团结引擎的 Input Field 与 TextMeshPro - Input Field组件自动适配,低版本或者其他组件暂不支持自动适配。
​ **自动适配在20241218版本后默认关闭,因为会导致 Touch 多调用一次 MainLoop 产生较大性能损耗。**若需开启,可以将`WXTouchInputOverride.cs`附加到`EventSystem`对象上,或在合适的位置加入

```
#if PLATFORM_WEIXINMINIGAME
WeixinMiniGameInput.mobileKeyboardSupport = true;
#elif PLATFORM_WEBGL
#if UNITY_2022_1_OR_NEWER
WebGLInput.mobileKeyboardSupport = true;
#endif
```

### 低版本兼容:

Expand Down
Loading