- Home /
Question by
yosske · Jun 09, 2017 at 06:53 AM ·
leaderboardsocialgamecenter
Understanding the "daily" and "weekly" scopes in Unity.Social & Apple GameCenter Leaderboards
Unity's Social.TimeScope
documentation says:
( https://docs.unity3d.com/352/Documentation/ScriptReference/TimeScope.Today.html)TimeScope.Today: Only return scores from today
However, Apple's native Swift documentation says:
case today: Each player is restricted to scores recorded in the past 24 hours.
( https://developer.apple.com/documentation/gamekit/gkleaderboardtimescope)
So, when using
Unity.Social.TimeScope
to fetch "daily" scores from Apple's GameCenter, which of the following are returned:
1. Scores from today's date (And if so, in which timezone?).
2. Scores from the past 24 hours, regardless of dates.
The same goes for the "weekly" time scopes: what does "the last week" mean here?
1. In the scope of the "current" week, i.e. since Sunday?
2. In the scope of the last 168 hours (7*24), regardless of the current day?
Thanks :)
Comment
Best Answer
Answer by yosske · Jun 12, 2017 at 08:47 AM
I ran a little "experiment" and figured it out myself :) My answer is here: https://stackoverflow.com/questions/44431211/understanding-the-daily-and-weekly-scopes-in-unity-social-apple-gamecenter