Platforms to show: All Mac Windows Linux Cross-Platform
Back to GKPlayerMBS class.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | GameKit | MBS MacFrameworks Plugin | 12.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Your game uses the alias property when it wants to display a user-visible string for a particular player.
(Read only property)
GKPlayerMBS.displayName as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | GameKit | MBS MacFrameworks Plugin | 15.0 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
The display name for a player depends on whether the player is a friend of the local player authenticated on the device. If the player is a friend of the local player, then the display name is the actual name of the player. If the player is not a friend, then the display name is the player’s alias.
Available in Mac OS X 10.8 and newer.
(Read only property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | GameKit | MBS MacFrameworks Plugin | 12.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
(Read and Write property)
GKPlayerMBS.isFriend as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | GameKit | MBS MacFrameworks Plugin | 12.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
The Game Center application allows players to declare other players as friends.
(Read only property)
Some examples using this property:
GKPlayerMBS.playerID as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | GameKit | MBS MacFrameworks Plugin | 12.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
The player identifier should not be displayed to the user. Your game should use this string whenever it needs to persistently store information for a specific player.
Do not make assumptions about the contents of the player identifier string. Its format and length are subject to change.
(Read only property)
The items on this page are in the following plugins: MBS MacFrameworks Plugin.