I’d like to use NGO 1.7.1 (or any other version, but that’s the only version shown by default) with Unity Transport 2.x, because WebGL is an important target for this project. Project is based on Unity 2023.2.2.
Upgrading the Transport project to 2.1.0 (also tried 2.0.2) results in lots of compile errors.
Reading the docs at Migrating from 1.X | Unity Transport | 2.0.2, it looks like there are a bunch of ways to fix up the compile errors locally to make this work, but is WebGL actually a supported configuration in some combination of versions of Unity/NGO/Transport2.0 that I’ve missed? Whilst I could manually hack source code for this into working, if no package combinations exist that allow this then NGO+Transport2.x seems unlikely to have had much testing, and there are (deprecated==stable) well tested WebGL networking options that we’ve used a lot in past projects out there.
Could you post the compile errors you are having and provide your manifest.json file?
NGO should work just fine with UTP v2.x.x versions and upgrading the package should be a relatively smooth process.
Thanks for the quick reply… in repro-ing this with a clean project so I can send the manifest to you as an easy repro, it looks like NGI 1.7.0 and Transport 2.1.0 compile fine in an empty project with Unity 2023.2.2.
This means it’s my fault… ah found it, I had a custom Unity.Collections, based on 1.4.x but made the CollectionHelper type publicly accessible so the NativeCustomArray example from the Unity Manual would compile. This in turn meant nothing in PackageManger or Unity could auto-upgrade Unity.Collections from 1.x to 2.x, which was the cause of the issues.
Since CollectionHelper has been fixed to be publicly accessible, I just reverted to using stock Collections 2.2.1, and now everything works. Looking forward to some networked NGO WebGL. Sorry for wasting your time!
No worries…indeed UTP v2.0 transitioned to the newer collections package which can add a bit more complexity to the transition process if you used specific aspects of the older collections package(s).
Glad you are no longer blocked! 
1 Like