ゲームからサインアウトする
Sign players in to Vivox with custom identifiers.
読み終わるまでの所要時間 1 分最終更新 6ヶ月前
ゲームでユーザーのサインインが必要なくなったときは、
VivoxService.Instance.LogoutAsync
以下のコードは、サインアウトプロセスの例を示します。
接続の問題によって引き起こされるサインアウトを処理するために、ゲームはイベントusing UnityEngine;using Unity.Services.Vivox;class LogoutExample : MonoBehaviour{ void LogOut() { VivoxService.Instance.LogoutAsync(); }}
VivoxService.Instance.LoggedOutVivoxService.Instance.LoggedOutusing UnityEngine;using Unity.Services.Vivox;using System.Components;class SessionPropChangeExample : MonoBehaviour{ VivoxService.Instance.LoggedOut += onVivoxLoggedOut; private void onVivoxLoggedOut() { //Vivox has logged out, and clean up should be done }}