I am encountering this error after I tried using the sample LeaderboardsSample script from the package.
There’s no data yet and the leaderboard has already been set-up in unity gaming services, and the initialize for anonymous sign-in is already detected.
I am trying to add a score. Anyone know why adding a score is having this error, and how to fix this?
Hi borbejonry, the exception Leaderboard config could not be found indicates that it is unable to find the leaderboard as created via the dashboard (or the API). This could be due to a mismatching leaderboard ID, or project ID or environment ID. Could you verify that those parameters are correct?
upon checking
-leaderboard ID in unity project is the same in the Unity Gaming Service.
-project ID is the same based on the link project settings services.
For the environment ID, How do I know which environment ID is being used in the Unity Editor?
By default when we initialize the Unity Core SDK with await UnityServices.InitializeAsync(); it will use the “production” environment, but that can be changed to use a different environment by using initialization options as per the docs here.