GLTFUtility icon indicating copy to clipboard operation
GLTFUtility copied to clipboard

Adapt to draco 4.0.2 (Fix WebGL build for Unity 2021 and 2022)

Open rasoulMrz opened this issue 2 years ago • 3 comments

As mentioned in issue #169, we have to use Draco version 4.x.x, in order to fix WebGL, builds on Unity 2021 and 2022. But it is also mentioned in the issue that if you simply remove the current version and install Draco 4.0.2 (e.x. using the installer provided in the GitHub repo) you will encounter build errors as the GLTFUtility is using methods with old signature. In order to fix this, you have to adapt the GLTFUtilityDracoLoader.cs to the new Draco API.

This pull request contains the adapted version of GLTFUtilityDracoLoader.cs and the old Draco plugin is also deleted from sources (you will need to install the new version as mentioned above).

rasoulMrz avatar May 29 '22 10:05 rasoulMrz

Works well, hoping for a merge.

saszer avatar Jun 21 '22 20:06 saszer

This works great! Think this should get merged.

EnigmaFactory avatar Aug 08 '22 14:08 EnigmaFactory