Understanding the "daily" and "weekly" areas in Unity.Social & Apple GameCenter Leaderboards

Unity documentation Social.TimeScopesays:

TimeScope.Today: return results only today https://docs.unity3d.com/352/Documentation/ScriptReference/TimeScope.Today.html

However, Apple's documentation on native Swift says:

Today: each player is limited to points recorded in the last 24 hours. https://developer.apple.com/documentation/gamekit/gkleaderboardtimescope

So, when used Unity.Social.TimeScopeto extract "daily" points from the Apple GameCenter, it returns from the following:

  • Results from today (And if so, in which time zone?).
  • Results for the last 24 hours, regardless of dates.

The same applies to “weekly” time areas: what does “last week” mean here?

  • Within the "current" week, i.e. from sunday?
  • During the last 168 hours (7 * 24), regardless of the current day?
+4
source share
1 answer

So, I spent a little "expiration" with the help TimeScope. Todayfor LoadScoresand I realized:

  • At 17:00 I published the records.
  • The next day I posted a lower score at 10:00 and still saw that the higher score was back when I used LoadScores.
  • 18:00, 24 , , , LoadScores.

: Social.TimeScope.Daily == 24 , .

, Weekly: .

+2

Source: https://habr.com/ru/post/1678769/


All Articles