---
title: playerAttributes
framework: gamekit
role: symbol
role_heading: Instance Property
path: gamekit/gkmatchrequest/playerattributes
---

# playerAttributes

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

## Declaration

```swift
var playerAttributes: UInt32 { get set }
```

## Mentioned in

Finding players using matchmaking rules Starting turn-based matches and passing turns between players

## Discussion

Discussion If the value of this property is 0xFFFFFFFF (the default), GameKit ignores this property. If the value is nonzero, GameKit uses the value as a mask that restricts the role of the player in the match. GameKit finds new players for the game so that the bitwise OR of all the player’s masks equals 0xFFFFFFFF.

## See Also

### Matching specific players

- [playerGroup](gamekit/gkmatchrequest/playergroup.md)
