PlayFabMultiplayer.ProcessLobbyStateChanges method
Triggers all the lobby related PlayFabMultiplayer.OnLobby* events since the last such call.
public static void ProcessLobbyStateChanges()
Remarks
This method provides the Lobby library an opportunity to synchronize state with remote devices or services
Lobby library state exposed by the library can change during this call, so you must be thread-safe in your use of it. For example, invoking ProcessLobbyStateChanges() on your UI thread at the same time a separate worker thread is looping through the list of endpoints returned by GetMembers
may result in crashes because ProcessLobbyStateChanges() can alter the memory associated with the member list. ProcessLobbyStateChanges() should be called frequently-- at least once per graphics frame. It's designed to execute and return quickly such that it can be called on your main UI thread with negligible impact. For best results, you should also minimize the time you spend handling state events.
See Also
- class PlayFabMultiplayer
- namespace PlayFab.Multiplayer
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for