익명 로그인 사용
Implement anonymous sign-in to create new players without requiring any sign-in credentials or player input.
읽는 시간 1분최근 업데이트: 한 달 전
익명 로그인은 플레이어의 입력 없이 게임 세션에 새 플레이어를 생성합니다. 따라서 플레이어가 빠르게 게임을 시작할 수 있습니다. SDK에 캐시된 세션 토큰이 존재하는 경우, 플레이어가 익명으로 로그인했는지 플랫폼 계정을 통해 로그인했는지에 관계없이
SignInAnonymouslyAsync()익명 로그인을 성공적으로 구현한 후, 필요 시 플레이어가 다른 기기에서 게임 진행률을 이어가거나 계정을 복구할 수 있도록 지원되는 ID 제공업체(ID 제공업체 페이지 참고) 중 적어도 하나와 연동할 것을 권장합니다.async Task SignInAnonymouslyAsync(){ try { await AuthenticationService.Instance.SignInAnonymouslyAsync(); Debug.Log("Sign in anonymously succeeded!"); // Shows how to get the playerID Debug.Log($"PlayerID: {AuthenticationService.Instance.PlayerId}"); } catch (AuthenticationException ex) { // Compare error code to AuthenticationErrorCodes // Notify the player with the proper error message Debug.LogException(ex); } catch (RequestFailedException ex) { // Compare error code to CommonErrorCodes // Notify the player with the proper error message Debug.LogException(ex); }}