LoadScene() working on build but not in Play Mode inside ReceivedMatchmakerMatched callback

@hackiey Have a look at this forum thread:

Issue of unavailable thread context for main-thread-only unity functionalities when called from Namama Socket.ReceiveLoop() async events

In short you should use UnityMainThreadDispatcher or another library to “move” the execution of your scene change off the socket thread and back onto the Unity main thread:

https://github.com/PimDeWitte/UnityMainThreadDispatcher

1 Like