Platforms to show: All Mac Windows Linux Cross-Platform

Back to GKPlayerMBS class.

GKPlayerMBS.alias as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GameKit MBS MacFrameworks Plugin 12.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
A string chosen by the player to identify themselves to other players. (read-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
A string to display for the player.

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)

GKPlayerMBS.Handle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GameKit MBS MacFrameworks Plugin 12.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The internal object reference.

(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
A Boolean value that indicates whether the local player has identified this player as a friend. (read-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
A string assigned by Game Center to uniquely identify a player. (read-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.


The biggest plugin in space...