Contents

value

The score earned by the player.

Declaration

var value: Int64 { get set }

Discussion

You can use any algorithm you want to calculate scores in your game. Your game must set the value property before reporting a score, otherwise an error is returned.

The value provided by a score object is interpreted by Game Center only when formatted for display. You determine how your scores are formatted when you define the leaderboard in App Store Connect.

See Also

Deprecated Methods and Properties