Skip to content

Demonstrates how to show a webview in AR using AR Foundation and Vuplex 3D WebView

License

Notifications You must be signed in to change notification settings

cq0824/ar-foundation-webview-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AR Foundation WebView Example

This Unity project demonstrates how to interact with web content in augmented reality using AR Foundation and Vuplex 3D WebView. It's a fork of the Unity AR Foundation Samples repo that adds a scene named ARWebViewDemoScene.

demo

Instructions for building

  1. Download Unity 2020.3 or 2021.1

  2. Open Unity and load the project at the root of the ar-foundation-webview-example repository.

  3. Import Vuplex 3D WebView.

  4. Select Android or iOS as the platform.

  5. Build ARWebViewDemoScene and run it on your device.

Steps taken to create this project

  1. Forked the Unity AR Foundation Samples repo (4.1 branch).

  2. Imported Vuplex 3D WebView (.gitignore).

  3. Made a copy of the Anchors scene named ARWebViewDemoScene.

  4. Made the following modifications to the new ARWebViewDemoScene scene (e31b637):

    • Changed the "Prefab" setting of the scene's AnchorCreator to a new prefab with a WebViewARAnchor.cs script that creates a WebViewPrefab and Keyboard.
    • Added a Physics Raycaster to the AR Camera to enable touch interaction with the WebViewPrefab and Keyboard.
    • Replaced the scene's StandaloneInputModule with InputSystemUIInputModule because the project uses the new Input System.

About

Demonstrates how to show a webview in AR using AR Foundation and Vuplex 3D WebView

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 89.5%
  • ShaderLab 6.6%
  • Objective-C 3.5%
  • Objective-C++ 0.4%