Log in or register to post comments

Vuforia makes WebGL exports fail on UCB

May 13, 2020 - 11:18am #1

Starting point:

We have several multi-platform projects, with adjusted features depending on the target platform. Augmented Reality being used on Android and iOS, but not on WebGL. I want to be very clear about this, we are NOT using Vuforia on WebGL.

We know Vuforia does not support WebGL. That being said, it should not hinder projects including Vuforia from being built for other platforms...


This has not been an issue for a few years now, untill we recently switched to the Package Manager version of Vuforia.

Before the switch, all code related to Vuforia was carefully excluded from non-mobile builds with pre-compile statements.

And the Vuforia libraries were correctly configured to only be made available for supported (Android and iOS) builds.


Now the issue is, we no longer have control over the scripts and libraries, as they are handled externally.

And, for some unknown reason the Vuforia Script librairies targel all platforms and make no use of pre-compile directives, making cloud builds fail when targetting WebGL, since Vuforia does not support this.

Why would you have your libraries target all plarforms when some of those are not supported ? From what I read, this has been an issue for quite a while.


Is there any way to correct this for cloud builds on our end?

(This is a real critical issue for us, as WebGL updates to our projects have essentially come to a halt).


If not, do you have plans to correct this critical issue in an upcoming update?

This doesn't seem like something difficult to correct for the next release :)


Thanks for your feedback on this issue ! :)


Vuforia makes WebGL exports fail on UCB

January 25, 2021 - 4:27pm #4

Any update on this?


This critical issue has been lingering for quite some time now, and then some. Quite surprising for such a poor, but so easily fixed, design issue.

You do not support WebGL, yet WebGL is not excluded on the VuforiaScripts assembly definition, nor code made to use platform precompile directives as not to hinder unsupported platforms.

I mean this can be solved just by checking a box on the assembly definition.


Yet, 8 months and a few updates later, this still hasn't been corrected.

But here we are, posting and getting to the bottom of issues to try and give useful feedback, just for the heck of it apparently.


This is exactly how you loose users, projects and thus licences; but then again, since you apparently do not care...

Vuforia makes WebGL exports fail on UCB

May 27, 2020 - 7:00am #3

A small precision, Vuforia makes WebGL builds fail period.

Local Builds can be done, but the Vuforia scripts need to be modified each time Unity is restarted, which is quite a hassle.


Hope this will be modified soon !

Vuforia makes WebGL exports fail on UCB

May 14, 2020 - 1:39am #2


I will bring up this to Product Managements attention.

Thank you.

Vuforia Engine Support

Log in or register to post comments