MicrosoftEdge / MicrosoftEdge/WebView2Feedback
[Problem/Bug]: Hololens Unity EventType.MouseMove not working
@michaelfarnsworth is already working on this.
Since Oct 12, 2023.
- Dominant language
- PowerShell
- Stars
- 526
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
What happened?
Hi
I have been able to integrate the Hololens WebView SDK into Unity with working mouse up and mouse down events. I cannot seem to get hover effects on pages to work using the WebViewMouseEventData.EventType.MouseMove event type.
I've tried to dig around and see if anyone has tried to enable this functionality to no avail. I assume it is because Hololens is not really intended to be used with a mouse per say?
I understand this is not officially supported outside of a Hololens environment, but the runtime as is runs almost perfectly for integrating into Unity as a general web browser. (I intend to use it to present UI and such).
I can ensured the inputs are correct so at this point I can only assume it's intended and just missed out of the native libraries built to wrap WebView2 functionality.
Any help you could give on this would be greatly appreciated.
Regards
Dan
Importance
Moderate. My app's user experience is affected, but still usable.
Runtime Channel
Stable release (WebView2 Runtime)
Runtime Version
No response
SDK Version
No response
Framework
Unity Plugin
Operating System
Windows 10
OS Version
No response
Repro steps
Follow the steps outlined in https://learn.microsoft.com/en-us/microsoft-edge/webview2/get-started/hololens2#step-4---install-the-webview-plugin-for-unity-by-using-the-mixed-reality-feature-tool. And then create an event for Mouse Move events, plugging in the corrected Unity mouse position coordinates. Hover effects etc don't work, but click events do.
Regression
No, this never worked
Last working version (if regression)
No response
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.