Contents

minPlayers

The minimum number of players that can join the match.

Declaration

var minPlayers: Int { get set }

Mentioned in

Discussion

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

If you use matchmaking rules, the rule set’s minPlayers 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 minPlayers field.

See Also

Related Documentation

Restricting the number of players