Integrations
Integrating Universal SDK with your Unity game
Plugins Settting
Assets/UniversalSDK/Plugins
에서 Assets/Plugins
로 플러그인 폴더경로를 이동시켜주세요.
Scene에 UniversalSDK 프리팹 추가
패키지를 가져온 후 Project 패널에서 Assets/UniversalSDK/
아래에 UniversalSDK 프리팹을 찾을 수 있습니다. 로그인을 추가하려는 scene의 Hierarchy 패널로 드래그합니다:
Update player settings
게임에서 Universal SDK API 사용하기 전에 아래 단계에 따라 프로젝트 플레이어 설정이 올바른지 확인하세요.
Android 빌드 설정
File > Build Settings 선택.
Player Settings 클릭.
Platform > Other Settings 선택.
Minimum API Level을 API level 19 이상으로 설정합니다.
Target API Level을 API Level 29 and 30 으로 설정합니다.
Publishing Settings에서 Custom Gradle Template을 활성화합니다. (.gradle 파일을 'Assets/UniversalSDK/Plugins/Android'에서 'Assets/Plugins/Android'로 이동합니다.)
iOS 빌드 설정
File > Build Settings 선택.
Player Settings 클릭.
Platform > Other Settings 선택.
Target minimum iOS 버전을
10.0
이상으로 설정합니다.
Implement login with Social
이제 UniversalSDK(GameObject)가 있는 scene에서 Social을 통한 로그인을 구현할 수 있습니다:
Unity용 Universal SDK는 현재 iOS 및 Android만 지원합니다. Unity 에디터 플레이 모드에서 실행하면 항상 오류를 반환합니다. 테스트하려면 장면을 iOS 또는 Android 장치로 내보내야 합니다.
CocoaPods를 종속성 관리자로 사용하는 경우 Xcode 프로젝트에 게임을 빌드한 후 원본 Unity-iPhone.xcodeproj
대신 Unity-iPhone.xcworkspace
파일을 엽니다.
Logout
소셜 로그인 시 안드로이드 구글만 로그아웃
을 지원합니다. (그 외에는 로그아웃 API이 지원되지 않습니다.)
ErrorCode
Error | Code | Desc |
---|---|---|
CANCEL | 7001 | User Cancel |
AUTHENTICATION_AGENT_ERROR | 7002 | authentication error |
INTERNAL_ERROR | 7003 | Configuration error |
Last updated