Skip to content

5. Current limitations

Matteo Baraldi edited this page Jun 30, 2021 · 1 revision

SHADOWS in Markerless

Shadows are not supported. Disable them from your lights (light --> cast shadow --> off) or the app will not run.

Unity Version

From Unity 2020.1 & above the way Unity creates the javascript loaders and customizes the templates are changed. So, if you try to upgrade the project to the newest versions you'll get a project that builds correctly but doesn't load anything once played. If you want to try upgrading the library, start from here: https://forum.unity.com/threads/changes-to-the-webgl-loader-and-templates-introduced-in-unity-2020-1.817698/

UI - Canvas elements responsiveness

ARWT reworks how Canvas scales across multiple resolutions. On a Canvas, remove the default Canvas Scaler component and add our custom UI Scaler component.

The first child of the Canvas must be a panel, expanded, and anchored to the center. Drag the child panel inside the Panel property of the UI Scaler component.

At the moment the panel adapts correctly to the end resolution but children don’t scale up or down. This means that all the elements are displayed in the correct position but don’t increase or decrease their size according to resolution.

To avoid errors, use ARWT built-in canvas.

Safari - VideoPlayer

The Unity VideoPlayer component works correctly and you can set it up like in any other project. On Chrome everything works fine. On Safari the video works but it is played in fullscreen. This means that Safari will open a different video player that covers the camera and the augmented reality.

Unity Mobile WebGL warning

At the moment we simply remove it. We hope that Unity will officially support this kind of build target near in the future.

Other official WebGL incompatibilities

https://docs.unity3d.com/Manual/webgl-browsercompatibility.html

Send us any feedback and report to help with the development. Fork and make a pull request if you improve the library, we'll be happy to integrate your changes.