inworld-ai / inworld-unity-full

Unity SDK for Inworld.ai. Create more realistic and believable worlds with characters powered by artificial intelligence.
https://docs.inworld.ai/docs/tutorial-integrations/Unity/
Other
63 stars 17 forks source link

The draco plugin being used causes build errors for webgl in Unity 2022 #151

Closed RamandeepSingh21 closed 10 months ago

RamandeepSingh21 commented 10 months ago

The draco plugin being used in Inworld.Samples.RPM doesn't support webgl build for Unity version 2021 and above. Please upgrade to the newer version of draco. The exact issue I came across can be found here https://github.com/Siccity/GLTFUtility/issues/169

In my case, I was using Unity version 2022.3.9f1. I downloaded and imported the Inworld folder from branch version3 (The inworld docs linked me to this branch and not main). And I got the exact same errors as the ones in the above linked issue. Note: I did follow the guidelines in docs about newtonsoft json package and it fixed the related errors. But the draco errors remain.

For now i will be downgrading to unity 2020 and hope that works.

RamandeepSingh21 commented 10 months ago

I found in Inworld docs "The RPM samples depend on Newtonsoft Json and GLTFUtility, which are currently not compatible with all platforms, such as WebGL." Had missed that.