How to publish a UAR project built in Unity to WebGl and get QR Code/Deep Link?

How to publish a UAR project built in Unity to WebGl and get QR Code/Deep Link?

1 Like

Hi @ak4514768,

Welcome to ZapWorks! :tada:

You’ll likely find this post helpful:

Have a great day!
Francesca :blush:

To publish a Unity UAR (Unity Augmented Reality) project to WebGL and generate a QR code or deep link, you can follow these general steps:

  1. Prepare your Unity project: Ensure that your UAR project is complete and functional within the Unity Editor. Test it thoroughly to verify that it works as intended.
  2. Build for WebGL: In Unity, navigate to “File” > “Build Settings.” Select the WebGL platform and configure the desired settings such as resolution, compression, and graphics quality. Click on “Build” and choose a folder to save the WebGL build files.
  3. Hosting the WebGL build: Upload the generated WebGL build files (including the index.html file and accompanying data) to a web server or hosting platform. Ensure that the hosting environment supports WebGL.
  4. Generate a QR code: You can use various online QR code generators to create a QR code that points to the URL of your hosted WebGL project. Copy the URL of your WebGL project and input it into the QR code generator. Download or generate the QR code image.
  5. Implement deep linking (optional): If you want to provide a deep link to your UAR project, you’ll need to handle it on the web page where your WebGL project is hosted. You can set up custom URL schemes or utilize frameworks like Firebase Dynamic Links or Branch.io to generate deep links that redirect to your WebGL project.
  6. Test the QR code and deep link: Verify that the QR code and deep link work correctly by scanning the QR code with a QR code scanner app or clicking on the deep link. It should open the web page hosting your WebGL project on a compatible device.