Skip to content

Commit 4b2956e

Browse files
committed
Update InputAdaptation.md
1 parent 507180c commit 4b2956e

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

Design/InputAdaptation.md

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
# 输入法适配
22

3-
### 支持2022和团结引擎的 Input Field 组件自动适配,低版本或者其他组件暂不支持自动适配
3+
### 自动适配
4+
5+
​ 支持2022和团结引擎的 Input Field 与 TextMeshPro - Input Field组件自动适配,低版本或者其他组件暂不支持自动适配。
6+
**自动适配在20241218版本后默认关闭,因为会导致 Touch 多调用一次 MainLoop 产生较大性能损耗。**若需开启,可以将`WXTouchInputOverride.cs`附加到`EventSystem`对象上,或在合适的位置加入
7+
8+
```
9+
#if PLATFORM_WEIXINMINIGAME
10+
WeixinMiniGameInput.mobileKeyboardSupport = true;
11+
#elif PLATFORM_WEBGL
12+
#if UNITY_2022_1_OR_NEWER
13+
WebGLInput.mobileKeyboardSupport = true;
14+
#endif
15+
```
416

517
### 低版本兼容:
618

0 commit comments

Comments
 (0)