> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Unity ゲームを Google Play Games サインインに移行する

> Unity Android プレイヤーを PlayFab の LoginWithGoogleAccount API から Google Play Games サインインおよび更新された Play Games プラグイン バージョンに移行する方法の概要。

## 移行が必要になる場合

これまで Unity ゲームの Android で PlayFab LoginWithGoogleAccount API を使用していた場合、最近のバージョン (>= 0.11.x) の [Play Games Plugin for Unity](https://github.com/playgameservices/play-games-plugin-for-unity) では、この API に必要な ServerAuthCode を取得できなくなったことに気付いたかもしれません。

これは、PlayFab LoginWithGoogleAccount API が動作するためには "profile" スコープが必要だからです。ただし、Play Games Plugin for Unity の最近のバージョン (>= 0.11.x) では追加スコープを追加する機能がサポートされていないため、LoginWithGoogleAccount API に依存するゲーム開発者はプラグインの最新バージョンにゲームをアップグレードすることができません。

私たちはこの問題を認識しており、Play Games Plugin for Unity のバージョン 0.11.x で PlayFab LoginWithGoogleAccount API を動作させる方法を特定しました。ただし、推奨される進め方は、0.10.x バージョンにいる間に既存のプレイヤーを Play Games プロファイルに移行 (リンク) することです。これにより、PlayFab LoginWithGoogleAccount API の使用への依存が解消されます。その後、しばらくしてから、前述の修正を、0.10.x で移行しなかった残りのプレイヤーへのフォールバック メソッドとして使用します。

推奨される進め方は次のとおりです。

1. 0.10.x を使用している間に、以下の移行手順を使用してプレイヤーを移行し、LoginWithGooglePlayGamesServices を使用するように既に移行済みのユーザーを追跡してください。プレイヤーを移行するにはゲームを開いてもらう必要があるため、この期間中に一部のプレイヤーが効果的に移行されない可能性があります。

   [LoginWithGooglePlayGamesServices 移行手順のステップ](/services/playfab/identity/player-identity/platform-specific-authentication/google-play-games-sign-in-migration-details)

2. その期間中に移行できなかった残りの既存プレイヤーについては、以下の修正手順を使用してプラグインの 0.11.x バージョンで LoginWithGoogleAccount を引き続き使用してください。ブラウザーを介してログインする必要があるとプレイヤーのエクスペリエンスに影響する可能性があるため、これはフォールバックの代替案と見なすべきです。

   [LoginWithGoogleAccount 修正手順](/services/playfab/identity/player-identity/platform-specific-authentication/google-play-games-sign-in-migration-fallback)


## Related topics

- [Unity で Google サインインから Google Play Games に移行する](/ja-jp/services/playfab/identity/player-identity/platform-specific-authentication/google-play-games-sign-in-migration-details.md)
- [Unity で Google Play Games サインインを使用した PlayFab 認証](/ja-jp/services/playfab/identity/player-identity/platform-specific-authentication/google-sign-in-unity.md)
- [Google サインインから Play Games サインインへの移行フォールバック](/ja-jp/services/playfab/identity/player-identity/platform-specific-authentication/google-play-games-sign-in-migration-fallback.md)
- [Game Manager へのサインイン](/ja-jp/services/playfab/live-service-management/gamemanager/game-manager-login.md)
- [ゲームを以前のパッケージ申請にロールバックする方法](/ja-jp/publishing/game-publishing/how-to/how-to-package-rollback.md)
