description | languages | page_type | products | urlFragment | ||
---|---|---|---|---|---|---|
Completed Unity project from the tutorial Get started with WebView2 in HoloLens 2 Unity apps. |
|
sample |
|
HoloLens2_GettingStarted |
Important
WebView2 continues to be available. However, support for WebView2 on Hololens is discontinued (no bug fixes, content updates or technical support), and we can therefore make no guarantees that applications will continue to work for any extended period of time.
This sample, HoloLens2_GettingStarted, is the completed Unity project that results from following the steps in the tutorial Get started with WebView2 in HoloLens 2 Unity apps.
Follow these steps to get started with this sample code. WebView2 is already included as a Unity package, but you will need to load it via the Mixed Reality Feature Tool.
- Clone this repository
- Launch the Microsoft Mixed Reality Feature Tool
- Click Start
- Click the ... button, navigate to the
HoloLens2GetStartedApp
folder, and select Open - With the project path selected, click Restore Features to load the required packages for the Mixed Reality Toolkit and the WebView2 plugin package.
- Close the Mixed Reality Feature Tool
- Launch Unity Hub
- In Unity Hub, click Open, navigate to the
HoloLens2GetStartedApp
folder, and select Open. This should open the project in the Unity Editor. - In the Unity Editor, find the SampleScene in the
Assets/Scenes
folder and double-click to load it. - Click the play button in the Unity Editor to quickly test the app.