How to Integrate a Game at IDC Games
  • Introduction
  • Quick Integration Guide
    • 1. Upload your game
    • 2. You integrate our login system
    • 3. Quick Payments Integration
    • 4. Upload Content to the Game Page
    • 5. Player acquisition
  • Complete Integration Guide
    • Introducion
    • 1. Panel Guide
      • 1.1. Create a new game
      • 1.2 Game Configuration
      • 1.3 Shop
        • 1.3.1. Shop Wizard
        • 1.3.2. Shop Offers
        • 1.3.3. Shop Coupons
        • 1.3.4. Shop Themes
        • 1.3.5. Test shop
      • 1.4. Multi-Language
      • 1.5. Releases
      • 1.6. DLC
      • 1.7. Store Content
      • 1.8. Content
      • 1.9. WebSection
      • 1.10. Purchase Report
        • 1.10.1. Dashboard
        • 1.10.2 Client & App
        • 1.10.3 Gamer Level
        • 1.10.4 Region & Country
        • 1.10.5 Purchase Notifications
        • 1.10.6 Sales Wallet
        • 1.10.7 Player Summary
      • 1.11 Stats Report
        • 1.11.1 Leads
        • 1.11.2 Retention
        • 1.11.3 Login
        • 1.11.4 Payment
        • 1.11.5 Wishlist
    • 2. Login Guide
      • 2.1. Login with Unity
      • 2.2. Login with C#
      • 2.3. Login with C++/Unreal
      • 2.4. Login with HTTP
      • 2.5. Login with Web Service Definition Language (WSDL)
    • 3. Payments Guide
      • 3.1. Payments Integration Overview
      • 3.2. How to launch the Shop
    • 4. API Guide
      • Releases Workflow
      • C# examples
  • The Platform Visual Guide
    • About the Game Platform
    • General Pages
    • Game page
  • Glossary
    • Glossary
Powered by GitBook
On this page

Was this helpful?

  1. Complete Integration Guide
  2. 2. Login Guide

2.1. Login with Unity

Previous2. Login GuideNext2.2. Login with C#

Last updated 1 year ago

Was this helpful?

You can download the unity package .

How to integrate the IDC Login prefab for Unity:

1. Drag IDCLoginManager prefab to your scene.

2. Select IDCLoginManager object and set your game "secret" at the Inspector.

3. You can retrieve if a user is logged in with the IsLogged property.

string isLogged = IDCLoginManager.instance.IsLogged;

4. Retrieve advanced user data by adding the following code at your scripts:

string userId = IDCLoginManager.instance.UserId;
string country = IDCLoginManager.instance.Country;
string language = IDCLoginManager.instance.Language;
string currency = IDCLoginManager.instance.Currency;
string nick = IDCLoginManager.instance.Nick;
string email = IDCLoginManager.instance.Email;
string status = IDCLoginManager.instance.Status;
string avatar = IDCLoginManager.instance.Avatar;
string custom = IDCLoginManager.instance.Custom;
Page cover image
here
Unity login secret