Contents

defaultNumberOfPlayers

The default number of players for the match.

Declaration

var defaultNumberOfPlayers: Int { get set }

Discussion

GameKit uses the default number of players to present the available slots in the matchmaking user interface. The player can choose to override this to add or remove slots. If you don’t set this property, GameKit uses the value of the maxPlayers property as the default number of players.

See Also

Restricting the number of players