Skip to content

Commit

Permalink
Merge pull request #950 from wechat-miniprogram/docs/font-0122
Browse files Browse the repository at this point in the history
Update InputAdaptation.md
  • Loading branch information
Oooocean authored Jan 22, 2025
2 parents 507180c + 4b2956e commit 887f4c6
Showing 1 changed file with 13 additions and 1 deletion.
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

0 comments on commit 887f4c6

Please sign in to comment.