Contents

maxPlayers

The maximum number of players that can join the match.

Declaration

var maxPlayers: Int { get set }

Mentioned in

Discussion

The possible values range from the minimum number of players to the value returned by the maxPlayersAllowedForMatch(of:) method. To set the minimum number of players, use the minPlayers property.

If you use matchmaking rules, the rule set’s maxPlayers field constrains this value. Set this property to a value in the range of the rule set’s minPlayers and maxPlayers fields. The default value is the rule set’s maxPlayers field.

See Also

Related Documentation

Restricting the number of players