Skip to content

Demonstrates how to use 3D WebView with Meta Quest

License

Notifications You must be signed in to change notification settings

vuplex/meta-xr-webview-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Meta Quest WebView Example

This Unity project demonstrates how to view and interact with web content in VR on Meta Quest headsets (2, 3, Pro) using Vuplex 3D WebView. It includes the Meta XR All-In-One SDK, so the only additional thing you must import is 3D WebView for Android.

Note: 3D WebView's native Android plugins can't run in the editor, so a mock webview implementation is used by default while running in the editor unless 3D WebView for Windows and macOS is also installed.

demo

Steps taken to create this project

  1. Created a new project with Unity 2022.3.17 using the default 3D project template.
  2. Imported the Meta XR All-In-One SDK (v62.0).
  3. Added the Meta XR Interaction SDK OVR Samples package and imported its "Example Scenes" samples.
  4. Made a copy of the RayExamples scene from the OVR Samples.
  5. Imported 3D WebView.
  6. Made the following modifications to the RayExamples scene copy:
    • Renamed the scene MetaXRWebViewExample.
    • Added a CanvasWebViewPrefab and CanvasKeyboard to the middle Canvas.
    • Removed unneeded objects from the scene.
    • Added the MetaXRWebViewExample.cs script to demonstrate using 3D WebView's scripting APIs.