Comments (10)
@jhihzonghu could you run the sample under a debugger to see if any notable errors are output?
from webview2samples.
hey, @michaelfarnsworth I have the same issue.
I followed the official document to build the basic WebView2 project (HoloLens2GetStartedApp) for the hololens2 device.
The result follows :
(1) The project works at Unity IDE successfully.
(2) The project might work on the Hololens2 device but the render is blank at the WebView2 widget.
(3) The project could not work on the Hololen2 simulation.
the developing environment :
(1) Unity 2021.3.24f1
(2) Visual Studio 2022
(3) MRTK Tools (WebView 0.17.1-pre.5)
(4) Hololens2 22621.1238
(5) Windows10 19045.3448
How can I resolve this problem?
B.R
from webview2samples.
@jhihzonghu could you run the sample under a debugger to see if any notable errors are output?
Dear @michaelfarnsworth: Thanks for your suggestion. I solved this problem, It should add the extra NuGet plugins and install the webview2.
unfortunately, I have the other question to solve it. The question is, I do not how could I cancel the pin on the hololens2 app, and let the app follow the holographic optical elements.
from webview2samples.
@jhihzonghu could you run the sample under a debugger to see if any notable errors are output?
Dear @michaelfarnsworth: Thanks for your suggestion. I solved this problem, It should add the extra NuGet plugins and install the webview2. unfortunately, I have the other question to solve it. The question is, I do not how could I cancel the pin on the hololens2 app, and let the app follow the holographic optical elements.
Could you please tell what plugins did you install and how? I have the same issue. The project is running, but the web view is empty.
from webview2samples.
@jhihzonghu Sorry, I'm not sure I understand the new issue. Are you wanting to place or resize the app? The sample is very simple app and currently doesn't support such manipulation. However, without much work you could add the WebView control to an MRTK Slate, which would have manipulation controls built-in. Here's some documentation about Slates.
from webview2samples.
@jhihzonghu could you run the sample under a debugger to see if any notable errors are output?
Dear @michaelfarnsworth: Thanks for your suggestion. I solved this problem, It should add the extra NuGet plugins and install the webview2. unfortunately, I have the other question to solve it. The question is, I do not how could I cancel the pin on the hololens2 app, and let the app follow the holographic optical elements.
BR. KenCould you please tell what plugins did you install and how? I have the same issue. The project is running, but the web view is empty.
well, It needs to install WebView with NuGet and clone this tutorial project. I hope this response is at the time.
BR
Ken
from webview2samples.
@jhihzonghu Sorry, I'm not sure I understand the new issue. Are you wanting to place or resize the app? The sample is very simple app and currently doesn't support such manipulation. However, without much work you could add the WebView control to an MRTK Slate, which would have manipulation controls built-in. Here's some documentation about Slates.
I am sorry that I delayed to feedback result. yeah, I find this tutorial project does not support manipulation partial. According to the official document, the webView is still in the preview stage. After deploying this project at the Hololens2 and reviewing the sample code. I decided to use WebView in the unity scene with the standalone pattern.
By the way, it seems that WebView might not support interactions that dragging and scrolling/keying in the same object. might it?
THX
Ken
from webview2samples.
For input interactions, the app is responsible for handling, translating, and sending along to the WebView2 control. As there are various ways of handling input, it's up to the developer to implement this. In the sample app, some basic input is wired up. In the future, we may add more. That said, you should be able to achieve scrolling operations with the IWithMouseEvents.MouseEvent method.
from webview2samples.
hey, @michaelfarnsworth I have the same issue. I followed the official document to build the basic WebView2 project (HoloLens2GetStartedApp) for the hololens2 device.
The result follows : (1) The project works at Unity IDE successfully. (2) The project might work on the Hololens2 device but the render is blank at the WebView2 widget. (3) The project could not work on the Hololen2 simulation.
the developing environment : (1) Unity 2021.3.24f1 (2) Visual Studio 2022 (3) MRTK Tools (WebView 0.17.1-pre.5) (4) Hololens2 22621.1238 (5) Windows10 19045.3448
How can I resolve this problem?
B.R
How did you deploy it to the HoloLens? When I deploy the demo project, it keeps crashing constantly after a maximum of 5 seconds, I have opened an issue here as well but it seems like I am the only one with this issue.
from webview2samples.
Hi @bensubytes, have you tried deploying/launching from Visual Studio to see if there are any exceptions being thrown?
from webview2samples.
Related Issues (20)
- Unity Hololens 2 sample crashes at startup HOT 12
- Unity Feature Request: expose AddScriptToExecuteOnDocumentCreatedAsync HOT 2
- Unity | HoloLens 2 - Application crashing at start HOT 23
- Can you provide a webview2 sample with java HOT 1
- Null Reference Exception when trying to run the WinForms sample project HOT 3
- Hololens 2 Completed Sample Crashes to Shell Environment on Launch HOT 3
- The WebView2APISample program sometimes fails to restore the visibility of the webview correctly.
- Calling C# native Winrt APIs from WebView2 in WinAppSDK
- "ERR_Blocked_by_client" Error in WebView on HoloLens 2 HOT 4
- HelloWebView contains race condition HOT 2
- Unity Sample Project immediately crashes once deployed to the HoloLens2/ in the Emulator
- Extended Delay in Launching Hololens Application
- Adding Multiple Webview in Unity
- Why does GetSDKBuildVersion remove the first two parts? HOT 1
- dll is missing in Hololens2 Getting Started sample
- Is it possible to run in a Windows Container/App Service to convert HTML to PDFs? HOT 2
- WebView2WpfBrowser example: File ScenarioPermissionManagement.html missing
- How To Build WebView2WpfBrowser HOT 1
- error trying to build WebView2APISample
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webview2samples.