#When using Multipass, SceneManager won't broadcast event from remote clients to server.
6 messages · Page 1 of 1 (latest)
Post how to replicate and tag me tomorrow if you still need help
Sorry, tried to delete this. I couldn't replicate it after I started a fresh project. I'll let you know if I can get a simple project to repro it if it occurs again.
@green frigate So after updated to the latest Pro version in my broken project, suddenly I was getting errors. The errors were incomprehensible, so I deleted all my library and other temp files and reopened the project, which then gave me a clear error that a null reference was being thrown.
That led me to see that I was calling NetworkBehaviour.IsOwner in Start(), before the NetworkBehaviour was Initialized (it didn't have a nob cached). The same happens if you check IsSpawned.
It might be useful to add a local boolean field to check if the NetworkBehaviour itself has been initialized before trying to access its cached nob.
Regarding having to delete the library folder, any idea on why previously no error was thrown at all, but now there is? Did something change in the last couple versions?
The only thing I can think of that was different other than a couple minor versions was I had put Fish Networking in an asmdef (in the broke version). Would an assembly definition cause issues like hiding errors or messing up the code weaving?
You can use the OnStartServerCalled or the OnStartClientCalled field to see if it has been initialised on the network
Thanks @main gate that's a good one.