public void Start() { PlayFabMultiplayer.Initialize(); PlayFabMultiplayer.OnMatchmakingTicketStatusChanged += OnMatchmakingTicketStatusChanged; PlayFabMultiplayer.OnMatchmakingTicketCompleted += OnMatchmakingTicketCompleted; } public void LoginAndMatch() { string id = username.text; var request = new LoginWithCustomIDRequest { CustomId = id, CreateAccount = true }; PlayFabClientAPI.LoginWithCustomID(request, OnLoginSuccess, OnLoginFailure); } private void OnLoginSuccess(LoginResult result) { Debug.Log("Logged in."); PlayFabMultiplayer.SetEntityToken(result.AuthenticationContext); string userAttributesJSON = ""; MatchUser localUser = new MatchUser(result.AuthenticationContext, userAttributesJSON); PlayFabMultiplayer.CreateMatchmakingTicket(localUser, "QuickMatchQueue"); } private void OnMatchmakingTicketStatusChanged(MatchmakingTicket ticket) { Debug.Log($"Matchmaking status changed: {ticket.Status}"); } private void OnMatchmakingTicketCompleted(MatchmakingTicket ticket, int result) { Debug.Log($"Matchmaking ticket completed: {ticket.Status}, {result}"); }
Running the following code I would expect OnMatchmakingTicketStatusChanged to trigger with WaitingForMatch status but nothing happens. However I can see in the queue dashboard that events seems to be coming in.
What could be the problem here?
,