Integration Guides

Unity SDK

  • Installation: Import package, drag G3XManager to scene

  • Authentication: Connect wallet, handle player sessions

  • Event Submission: Use G3XAPI.SendEvent() for in-game actions

  • Rewards: Call G3XAPI.ClaimRewards() to distribute XP/tokens/NFTs

  • Example Code:

    csharpSalinEditG3XAPI.SendEvent("Kill", playerId, matchId);

Unreal Engine SDK

  • Installation: Add plugin to /Plugins directory

  • Setup: Initialize G3X module in your GameMode

  • APIs:

    • ValidateEvent()

    • FinalizeMatch()

  • Sample Usage:

    cppSalinEditUG3XManager::ValidateEvent(EventName, PlayerID, MatchID);

Web/HTML5 SDK

  • Install:

    bashSalinEditnpm install g3x-sdk
  • Initialize:

    jsSalinEditimport { G3X } from 'g3x-sdk';
    const g3x = new G3X({ apiKey: 'YOUR_KEY' });
  • Main Functions:

    • g3x.authenticate(walletAddress)

    • g3x.sendEvent(eventData)

    • g3x.claimRewards(playerId)

Last updated