microsoft / MixedRealityToolkit-Unity

This repository is for the legacy Mixed Reality Toolkit (MRTK) v2. For the latest version of the MRTK please visit https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity
https://aka.ms/mrtkdocs
MIT License
6k stars 2.12k forks source link

TouchScreenKeyboard does not work in editor/simulator #4577

Closed eoineoineoin closed 5 years ago

eoineoineoin commented 5 years ago

Describe the bug

When running a scene in the editor, opening the TouchScreenKeyboard, no keyboard is displayed; the keyboard status is immediately set to TouchScreenKeyboard.Status.Done.

To reproduce

Steps to reproduce the behavior:

  1. In the MRTK examples, open Demos/HandTracking/Scenes/HandInteractionExamples
  2. Press play to start simulation in editor
  3. Click button to enable keyboard interaction (left of scene)
  4. See: no keyboard; OpenKeyboard.cs sets the debug message to "typed " (the completion message)

Expected behavior

Keyboard should be displayed and allow user input.

Your Setup (please complete the following information)

StephenHodgson commented 5 years ago

Not exactly a bug as the touch screen keyboard is a Unity method call, and you're not on a platform that supports the touch screen if you're running in the editor.

julenka commented 5 years ago

While I agree it would be really great to bring up the keyboard in the editor, this is not something we are able to do since it would require creating an entire keyboard control just for in-editor simulation. For in-editor simulation, you can directly type into a UnityUI text field using your keyboard.

Grave18 commented 2 months ago

And if we want to test TouchKeyboard do we need all the time build application? This is a waste of time.