プロファイルの管理
Create and manage multiple player profiles on a single device to allow players to sign in with different accounts.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
プレイヤーはプロファイルを使用して、1 つのデバイス上で複数のアカウントにサインインできます。プロファイルは
PlayerPrefsプロファイルの切り替え
現在のプロファイルを切り替えるには、プレイヤーがサインアウトする必要があります。AuthenticationService.Instance.SwitchProfile(profileName)SwitchProfileAuthenticationExceptionAuthenticationErrorCodes.ClientInvalidUserStateSwitchProfileAuthenticationExceptionAuthenticationErrorCodes.ClientInvalidProfile現在のプロファイル
現在のプロファイルを表示するには、AuthenticationService.Instance.Profileデフォルトのプロファイル
初期化オプションでプロファイルが指定されていない場合は、default初期化時にプロファイルを設定する
任意でUnityServicesAuthenticationServicedefaultasync Task InitializeUnityServices(){ var options = new InitializationOptions(); options.SetProfile(“test_profile”); await UnityServices.InitializeAsync(options);}