Re:Analysis of Magic Leap 2 at SPIE AR/VR/Mr 2022
by doomlaser on Wednesday February 02, 2022 @08:17AM
(#30177058)
This looks like a really great tool! Is it possible to control the contents of the WebView through script and turn off the interactivity / keyboard?
[ Parent
| on HN ]
Re:Analysis of Magic Leap 2 at SPIE AR/VR/Mr 2022
by binarynate on Wednesday February 02, 2022 @01:42PM
(#30181948)
Thank you! Yes, apps can control the webview through the IWebView interface:
https://developer.vuplex.com/webview/IWebView
In most cases, keyboard input is sent to a webview programmatically:
https://support.vuplex.com/articles/keyboard
So, to disable the keyboard, the app can just omit the Keyboard prefab from the scene and leave the WebViewPrefab.NativeOnScreenKeyboardEnabled option disabled (for mobile):
- https://developer.vuplex.com/webview/Keyboard
- https://developer.vuplex.com/webview/WebViewPrefab#NativeOnS...
If you want to disable clicking and scrolling, you can set the WebViewPrefab's ClickingEnabled and ScrollingEnabled options to false:
- https://developer.vuplex.com/webview/WebViewPrefab#ClickingE...
- https://developer.vuplex.com/webview/WebViewPrefab#Scrolling...