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

65 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, 3S, 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 6.2 (6000.2.10f1) using the default Universal 3D project template.
  2. Opened the Unity Package Manager and did the following:
    • Imported v78.0 of the Meta XR All-In-One SDK.
    • On the page for the Meta XR Interaction SDK package (com.meta.xr.sdk.interaction.ovr), clicked on the "Samples" tab and clicked "Import" button for "Example Scenes".
  3. Imported 3D WebView.
  4. Copied the RayExamples sample scene to Assets/Scenes.
  5. Made the following modifications to the RayExamples scene copy:
    • Renamed the scene to MetaXRWebViewExample.
    • Added a CanvasWebViewPrefab and CanvasKeyboard to its curved Canvas.
    • Removed unneeded objects from the scene.
    • Added the MetaXRWebViewExample.cs script to demonstrate using 3D WebView's scripting APIs.

About

Demonstrates how to use 3D WebView with Meta Quest

Resources

License

Stars

Watchers

Forks

Packages

No packages published