question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't Install Netcode for GameObjects for WebGL even when planning to use Photon Realtime Transport on M1 Mac

See original GitHub issue

I 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:open
  • Created a year ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
tpitmancommented, Nov 7, 2022

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.

0reactions
chrispopecommented, Nov 7, 2022

I don’t know specifically, but I can suggest/clarify with you a few things.

  1. Are you trying with NGO 1.1 (which added Web Sockets support) and does the error still occur?
  2. What version of Collections package are you using in the project?
Read more comments on GitHub >

github_iconTop Results From Across the Web

Netcode for GameObjects Using Photon Realtime for WebGL
I am developing on a M1 MacBook Pro. I also installed the Photon Realtime transport package from the git URL, but the error...
Read more >
Install Netcode for GameObjects
Installing with the Package Manager​​​ Install the Netcode for GameObjects package: From the Unity Editor, select Window > Package Manager. From ...
Read more >
Why is my WebGL game failing to connect? - photon forum
I'm a fairly new user of Photon, with a decent amount of Unity experience. Ideally the game should allow a player to generate...
Read more >
does netcode work on webgl? : r/Unity3D
i was following code monkey tutorial for netcode for game objects and he was making kitchen chaos game he goes through netcode then...
Read more >
General - Oculus Developer Forum
Hello, I am using Unity 2020 and Oculus Unity Integration SDK 33. ... help Library\PackageCache\com.community.netcode.transport.photon-realtime@1d5be27015\ ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found