Can't Install Netcode for GameObjects for WebGL even when planning to use Photon Realtime Transport on M1 Mac
See original GitHub issueI would like to create a multiplayer game using Netcode for GameObjects on WebGL.
I understand that the built in transports are not supported.
At the home page for netcode it says there are 3rd party transports that should work.
I am using Unity 2021.3 and tried to install the Netcode package version 1.0.2.
If I have the build settings targeted to WebGL I get the following error:
(0,0): error System.TypeLoadException: Could not load type 'Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle' from assembly 'UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'
If I change it back to Windows, Mac, Linux the error goes away.
I am developing on a M1 MacBook Pro.
I also installed the Photon Realtime transport package from the git URL, but the error remains.
Issue Analytics
- State:
- Created a year ago
- Comments:6
Top GitHub Comments
I have not gone through your steps yet. I will be doing that later. I am sure I am probably using the release versions of everything.
I will try your steps later and report back whether it fixes the error or not. I was just wondering if that specific error meant anything to you.
I don’t know specifically, but I can suggest/clarify with you a few things.