File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -168,7 +168,12 @@ public static float devicePixelRatio
168
168
169
169
static void HandleOnIMECompositionChange ( IMECompositionString imeCompositionString )
170
170
{
171
- inputSystemCompositionString = imeCompositionString . ToString ( ) ;
171
+ // 如果这里赋值了还会导致输入重复的Bug, 因为应对不同输入法时InputSystem可能会返回完整的文字
172
+ // 此功能本身只是为了显示中途打字符号(例如打拼音时中途的英文), 不会影响最后输入, 而且严重依赖输入法, 故直接去除此功能
173
+ // 参考链接:
174
+ // https://github.com/Unity-Technologies/InputSystem/commit/6d8ff967aeff02a627668e878eda566b81fd7c40
175
+ // https://issuetracker.unity3d.com/issues/onimecompositionchange-does-not-return-an-empty-string-on-accept-when-using-microsoft-ime
176
+ // inputSystemCompositionString = imeCompositionString.ToString();
172
177
}
173
178
#endif
174
179
You can’t perform that action at this time.
0 commit comments