チラ裏Unity

主にUnityについての備忘録ですが誰か様の為になれば

GameCenterで達成項目を解除できない

引用のコードでGameCenterの達成項目を解除しようとすると

Social.ReportProgress("achievement.clear2"100.0, (success) => {
    if (success) {
        Debug.Log("Report progress successful");
    } else {
        Debug.Log("Report progress failed");
    }
});

以下のようなエラーが表示されて達成項目が解除できない

Looking for achievement.clear2, cache count is 1

Report progress failed

  • achievement.clear2はGameCenterで設定した達成項目ID
  • cache countは状況によって1でなかったりもする

 

同じスクリプトをUnity4.6.5でiOS向けにビルドした際は正しく達成項目が解除されたため、Unity5.0.2のバグではないかと思われる