PROCW / ar-foundation-webview-example

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:Other


Languages

Language:C# 89.5%Language:ShaderLab 6.6%Language:Objective-C 3.5%Language:Objective-C++ 0.4%