Post

Replies

Boosts

Views

Activity

Reply to Open Leaderboard using Apple Unity Plugin GameKit
The game's leaderboard must be launched to access it. The id often needs to be in an [array] to be recognized. It is recommended to use try catch to catch error messages. Below is a part of the code I used. try { var gameCenter = GKGameCenterViewController.Init(GKGameCenterViewController.GKGameCenterViewControllerState.Leaderboards); await gameCenter.Present(); } catch (GameKitException ex) { Debug.LogError($"GameKitException while presenting leaderboard: {ex.Message}"); } catch (Exception ex) { Debug.LogError($"Unexpected error while presenting leaderboard: {ex.Message}"); }
3w