Instance Property


A mask that specifies the role that the local player would like to play in the game.


var playerAttributes: UInt32 { get set }


If this value is 0xFFFFFFFF (the default), this property is ignored. If the value is nonzero, then automatching uses the value as a mask that restricts the role the player can play in the group. Automatching with player attributes matches new players into the game so that the bitwise OR of the masks of all the players in the resulting match equals 0xFFFFFFFF.

For more information, see Game Center Programming Guide.

See Also

Creating Subsets of Players

var playerGroup: Int

A number identifying a subset of players allowed to join the match.