Unityプロジェクトでgoogle play gamesプラグインを有効にしました。 Unityバージョンは5.3.4f1です。 Googleゲームプラグインのバージョンは0.9.32です。私は正常に自分のプロジェクトでgoogle play gamesサービスにログインしました。スコアを提出し、私はリーダーボードを表示しようとすると、そのログにこのようなエラーを示す後:受信UIコールバック:Unity3dのリーダーボードにスコアを投稿した後にGoogle Playリーダーボードが表示されない
04-29 09:58:53.537: I/Unity(6910): [Play Games Plugin DLL] 04/29/16 9:58:53 +05:30 DEBUG: Entering internal callback for AndroidPlatformConfiguration#InternalIntentHandler
04-29 09:58:53.537: I/Unity(6910): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
04-29 09:58:53.575: I/Unity(6910): [Play Games Plugin DLL] 04/29/16 9:58:53 +05:30 DEBUG: Application is pausing, which disconnects the RTMP client. Leaving room.
04-29 09:58:53.575: I/Unity(6910): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
04-29 09:58:55.940: D/GamesUnitySDK(6910): Forwarding OnActivityResult
04-29 09:58:55.963: D/GamesUnitySDK(6910): Forwarding OnActivityResult Finished
04-29 09:58:55.999: I/Unity(6910): [Play Games Plugin DLL] 04/29/16 9:58:55 +05:30 DEBUG: Showing UI Internal callback: ERROR_NOT_AUTHORIZED
04-29 09:58:55.999: I/Unity(6910): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
04-29 09:58:56.077: I/Unity(6910): [Play Games Plugin DLL] 04/29/16 9:58:56 +05:30 DEBUG: Invoking user callback on game thread
04-29 09:58:56.077: I/Unity(6910): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
04-29 09:58:56.085: I/Unity(6910): [Play Games Plugin DLL] 04/29/16 9:58:56 +05:30 DEBUG: Received UI callback: ERROR_NOT_AUTHORIZED
04-29 09:58:56.085: I/Unity(6910): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
04-29 09:59:54.185: I/Unity(6910): [Play Games Plugin DLL] 04/29/16 9:59:54 +05:30 DEBUG: Application is pausing, which disconnects the RTMP client. Leaving room.
04-29 09:59:54.185: I/Unity(6910): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
私はこの
DEBUGのようなエラーを取得しています:ERROR_NOT_AUTHORIZED
私も正常にログインしましたが、まだエラーが許可されていません。ここに私のコードです。
using GooglePlayGames;
using GooglePlayGames.BasicApi;
public class GooglePlayGameService : MonoBehaviour {
void Start()
{
PlayGamesClientConfiguration config = new PlayGamesClientConfiguration.Builder()
.RequireGooglePlus()
.Build();
PlayGamesPlatform.InitializeInstance(config);
PlayGamesPlatform.DebugLogEnabled = true;
PlayGamesPlatform.Activate();
Social.localUser.Authenticate((bool Success)=>{
if(Success)
{
mStatusText = "Welcome " + Social.localUser.userName;
Debug.Log("Success Google Play Games");
}
else
{
mStatusText = "Authentication failed.";
//ShowNextScene();
Debug.Log("failed Google Play Games");
}
});
}
}
public void ShowScoreBoard()
{
Debug.Log("User Authenticated: " + Social.localUser.authenticated);
if (Social.localUser.authenticated)
((PlayGamesPlatform)Social.Active).ShowLeaderboardUI("leaderboard id here");
}
ユーザーが認証されているかどうかを確認すると、デバッグするとtrueに戻ります。しかし、リーダーボードは表示されません。このエラーを解決するのに手伝ってください。前もって感謝します。
が保存されたゲームデベロッパーコンソールでオフになって有効にする必要があります構築することを確認してください。デベロッパーコンソールのAPIコンソールプロジェクトで有効にするものはありません。私はドライブAPIを見つけることができません。手伝ってくれませんか。 – njnjnj
それをオンにしないでください –
私が投稿したコードは正しいですか? – njnjnj