英文:
Unity InputField on HoloLens, keyboard disappears
问题
我正在尝试在我的HoloLens(第一代)应用程序上添加一个输入字段,当我点击该字段时,键盘会出现,但然后消失。
问题
我的输入字段是一个Unity UI输入字段,当我使用手指点击输入字段时,我可以听到点击声音,键盘出现后立即消失。
我尝试过的解决方法
根据文档,使用Unity UI输入字段或TextMeshPro输入字段应该允许我使用键盘来填写输入。
有没有解决这个行为问题的任何解决方案?
英文:
I'm trying to add an input field on my HoloLens (1st gen) app and when I click on the field the keyboard appears but then disappears.
The problem
My input field is an Unity UI input field and when I click using a finger tap on the input field I can hear a click sound and the keyboard appears but disappears right after.
What I've tried
According to the documentation, using Unity UI input field or TextMeshPro input field should allow me to use the keyboard in order to fill the input.
Any solution on how to fix this behaviour ?
答案1
得分: 1
我也曾遇到同样的问题。不仅在Hololens 1上,而且在Hololens 2上也有这个问题。
我曾经在使用Unity 2021版本,但后来回退到了Unity 2019版本。似乎解决了键盘突然消失的问题。您还可以在这里获取有关Unity版本和MRTK键盘的更多相关信息 键盘突然消失。根据链接,某些2020或2019 Unity版本似乎已经修复了这个问题,但对我来说,Unity 2020版本并没有解决这个问题。
另一方面,键盘还存在另一个问题;在键盘上键入时,光标位置似乎没有正确地随文本移动,有时文本会混乱。然而,这只发生在大约20%的时间,所以我继续使用它。
希望对您有所帮助。
英文:
I have also had same problem. Not only on the Hololens 1 but also on the Hololens 2.
I was using Unity 2021 versions but then rolled back to Unity 2019 version. It seemed to solve the problem of keyboard disappearing suddenly. You can also get more related information about the unity versions and MRTK keyboard here Keyboard disappearing all of a sudden.According to the link , certain 2020 or 2019 Unity version seems to have this issue fixed,but for me, Unity 2020 versions did not solve the issue.
On other hand,there is also one other issue with keyboard; when typed on the keyboard the cursor position did not seem to properly move with text and sometimes the text would get jumbled up. However, it was only around 20% of the time, so i went ahead with it.
Hope this helps.
答案2
得分: 0
使用 "TextMeshPro 输入字段" 解决了问题。
英文:
Using TextMeshPro Input Field
solved the problem
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论