Skip to content

LYNC-WORLD/OKX-Unity-Wallet-SDK

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LYNC-OKX-Wallet-SDK

The LYNC - OKX wallet SDK allows game developers to integrate OKX Wallet into their games quickly, and set up OKX Chain inside the game in less than 30 seconds. This SDK allows game developers to monitor gamers’ data via the LYNC analytics system and update the SDK without leaving the game engine.

Get Your API Key

Please get your API key before downloading the SDK from https://www.lync.world/form.html

Installation

Import the SDK .unitypackage file to your project. or simply drag and drop .unitypackage file to your project.

image

Once the OKX Wallet SDK package has finished importing into your Unity project, you can begin integrating it into your game. To do this, open the ConnectWallet scene provided by the LYNC-OKX SDK.

                                         Path : Assets ->LYNC-OKX-SDK -> Scenes

image

Choose blockchain network

After opening ConnectWallet scene, Go to Interface. In the "Inspector" window, go to the API key & Enter the API key.

image

To choose the blockchain network, simply go to the CurrentChain drop-down menu and pick the network of your preference to deploy your game on.

image

Integrating ConnetWallet scene into the build

To deploy your Unity project, it's necessary to set up the Player Settings in Unity. Follow these steps to select the LYNC WebGL template.

image

In the "Build Settings" window, place ConnectWallet and FetchWallet at the top of this section.

image

Go to "Player Settings" and navigate to "Resolution and Presentation". Select LYNC - Template in WebGL Template

image

After completing all the necessary steps and configuring the Player Settings with the LYNC WebGL template, you can now build and run your game. To do this, go to "File" on the top menu bar in the Unity editor and select "Build and Run."

image

Congratulation, you have successfully integrated the OKX wallet with your favourite blockchain network using LYNC SDK.

NOTE: If you wish to use wallet address inside game after user's wallet is connected, use:

PlayerPrefs.GetString("WalletAddress");