Eternals
  • Introduction
  • Eternia
    • Lore
    • Creatures System
      • Legend
      • Elementals
        • Fire
        • Nature
        • Earth
        • Water
        • Metal
      • Base Eternals
    • Space Stone
  • Alliance Mining Program
    • Getting Started
    • User Profile (Alliance Center)
      • Upgrade Account
      • Achievements
    • Mechanism
    • Reward Distribution
  • $ETNS (Eternals Stars Program)
    • The $ETNS System
  • Eternals Core
    • Eternals House
      • Mood
      • How to maintain a good pet's mood?
      • Decoration
      • Shop
    • Eternals Space
      • Missions
      • Mining Tower
      • Leaderboard
      • Refill Plasma
  • Eternals World
    • Gomoku
      • Game modes: Classic and Eternians
      • Battle Deck
      • Quick Match
      • Ranking Match
      • How to earn Tickets
      • How to join Eternals Gomoku
      • Missions
      • Daily Login
      • Mastery Points
      • Win Streak
      • Pet Skills
      • Leaderboard and Reward Pools
  • ETER Token
  • How To Earn With Eternals?
  • Official Links
    • Website
    • Twitter
    • Discord
    • App Store
    • Google Play
  • GDK Documentation
    • Ninety Eight Game Development Kit
    • Introduction
    • Unity
      • GDK Installation Guide
      • Update Guide
      • Examples
      • Downloads
      • Release Notes
      • API Reference
        • v1.0.0
          • NinetyEight.INEGdk
          • NinetyEight.ErrorCode
          • NinetyEight.NEGameProfile
          • NinetyEight.NEGameProfileCallback
          • NinetyEight.NEGameProfileResponse
          • NinetyEight.NEGdkConfig
          • NinetyEight.NEInitCallback
          • NinetyEight.NELoginCallback
          • NinetyEight.NELoginData
          • NinetyEight.NEProvider
          • NinetyEight.NEShopBuyCallback
          • NinetyEight.NEShopBuyResponse
          • NinetyEight.NEShopInfoCallback
          • NinetyEight.NEShopInfoResponse
          • NinetyEight.NEShopItem
          • NinetyEight.NEShopPack
          • NinetyEight.NEUserBalance
          • NinetyEight.NEUserBalanceCallback
          • NinetyEight.NEUserBalanceResponse
          • NinetyEight.NEUserPet
          • NinetyEight.NEUserPetCallback
          • NinetyEight.NEUserPetResponse
          • NinetyEight
    • Cocos Creator
      • Installation Guide
      • Update Guide
      • Examples
      • Downloads
      • Release Notes
      • API Reference
        • NinetyEight Game Development Kit - Cocos Creator
          • Enumerations
            • NinetyEight.NEEnvironment
            • NinetyEight.NEErrorCode
            • NinetyEight.NEProvider
          • Interfaces
          • Type-aliases
            • NEGameProfile
            • NEGameProfileCallback
            • NEGameProfileResponse
            • NEGdkConfig
            • NEInitCallback
            • NELoginCallback
            • NELoginData
            • NEShopBuyCallback
            • NEShopBuyResponse
            • NEShopInfoCallback
            • NEShopInfoResponse
            • NEShopItem
            • NEShopPack
            • NEUserBalance
            • NEUserBalanceCallback
            • NEUserBalanceResponse
            • NEUserPet
            • NEUserPetCallback
            • NEUserPetResponse
  • LEGAL
    • Game Terms of Use
    • Privacy Policy
    • Terms of Use
Powered by GitBook
On this page
  • Requirements
  • Import GDK package
  • Setup
  • Setup for Android
  • Setup for iOS
  • Example
  1. GDK Documentation
  2. Unity

GDK Installation Guide

Requirements

  • Unity 2022.3.39+

  • Minimum Android SDK version: 24

  • Minimum iOS version: 12.0

Import GDK package

  • Download the latest GDK Unity package [here]

  • Import .unitypackage into your project

Setup

Drag and drop the GDK prefab from Assets/NEGdk/Prefab/NEGdk.prefab into your start scene

Select the NEGdk GameObject and update the configuration in the Inspector for your game.

NEGDK uses Ramper to support social login on Android and iOS. Your app's scheme must be configured for this feature to work. Follow the section below for setting up your app's scheme on Android and iOS.

Setup for Android

  • Create custom AndroidManifest by checking the box Custom Main Manifest in Player Setting/Android/Publising Settings. AndroidManifest

  • The file will be found at Assets/Plugins/Android/AndroidManifest.xml

  • Add your app's scheme in activity section in AndroidManifest.xml:

<application>
        <activity android:name="com.unity3d.player.UnityPlayerActivity"
                  android:theme="@style/UnityThemeSelector">

            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data android:scheme="your_app_scheme"/>
            </intent-filter>
    
        </activity>
    </application>
  • Add INTERNET permission in AndroidManifest.xml:

<uses-permission android:name="android.permission.INTERNET" />

Setup for iOS

  • Update Assets/NEGdk/Editor/IOSPostProcessBuild.cs to add your app scheme for iOS automatically whenever building an XCode project with Unity:

public static class IOSPostProcessBuild
{
    // UPDATE YOUR APP SCHEME HERE
    private static readonly string BundleURLScheme = "your_app_scheme"; 

Example

You can check out the example code at Asssets/NEGdk/Sample/NEGdkSample.cs

PreviousUnityNextUpdate Guide

Last updated 24 days ago