Contents

playerID

The player identifier for the player that earned the score.

Declaration

var playerID: String? { get }

Discussion

When you initialize a new score object, the playerID property is set to the identifier for the local player. If the score object was returned to your game by loading scores from Game Center, the playerID property identifies the player who recorded that score.

See Also

Deprecated Methods and Properties