question

a7arrr7 avatar image
a7arrr7 asked

I need to let the game start with matchmaking

how I could find who join the matchmaking first, I am using Unity Mirror with Steam I added playfab to add matchmaking and I want to make like this if(results.Members[0]) { Host();} else if (results.Members[1]) {Client();} I am using Unity

unity3dMatchmaking
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Made Wang avatar image
Made Wang answered

You can get matched players with GetMatch, which is sorted by the order in which the players created the match tickets.

If what you want to know is who joins the game first after the match ends, then you need to listen to the player connect event yourself. Refer to this sample.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.