구글 유니티용 SDK 다운로드
Unity용 Google Play 게임즈 플러그인 시작하기 | Android 게임 개발 | Android Developers
Unity용 Google Play 게임즈 플러그인 시작하기 컬렉션을 사용해 정리하기 내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요. 이 주제에서는 Unity용 Google Play 게임즈 플러그인을 사용하도록 Unit
developer.android.com
- 코드 작성
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using GooglePlayGames;
using GooglePlayGames.BasicApi;
public class GooglePlayManager : MonoBehaviour
{
private void Awake() //구글 로그인 초기화
{
PlayGamesClientConfiguration config = new PlayGamesClientConfiguration.Builder()
.AddOauthScope("profile")
.RequestServerAuthCode(false)
.Build();
PlayGamesPlatform.InitializeInstance(config);
PlayGamesPlatform.DebugLogEnabled = true;
PlayGamesPlatform.Activate();
}
public void Login() //로그인
{
if (!Social.localUser.authenticated) //구글 로그인이 안 되어 있을 경우
{
Social.localUser.Authenticate((bool bSuccess) =>
{
if (bSuccess)
{
Debug.Log("Google Login Success");
}
else
{
Debug.Log("Google Login Fall");
}
});
}
}
public void LogOut() //구글 로그아웃
{
((PlayGamesPlatform)Social.Active).SignOut();
Debug.Log("Google LogOut");
}
}
다른 로그인 기능 구현
유니티 C# 애플 로그인 Sign ln with Apple Login 간단 구현
애플 SDK 설치 Release Sign in with Apple Unity Plugin v1.4.2 · lupidan/apple-signin-unityChanged Handles empty NSPersonNameComponents sent by Apple when not requesting a name, to be nil natively. Updated MacOSAppleAuthManager.bundle with the updated
parksh3641.tistory.com
유니티 C# 파이어베이스 익명 로그인 간단 사용법 Firebase Auth Guest Login
파이어베이스 SDK 다운로드 Unity 프로젝트에 Firebase 추가 | Unity용 Firebase 의견 보내기 Unity 프로젝트에 Firebase 추가 Firebase Unity SDK를 활용하여 Unity 게임을 업그레이드 해보세요. Firebase를 Unity 프로
parksh3641.tistory.com