Minting your NFTs over the web and plugging APIs to mint it through your own DApps are all cool. What about being able to mint in-game NFTs directly from Unity? We have got you covered! Introducing our Unity SDK
- Download the contents from the repo
- Open the project on Unity, preferably Unity 2021.3
- There are 3 scene files namely "TestUpload", "TestMint" and "TestRefreshJWT" which you can use to test
- The "TestUpload.cs", "TestMint.cs" and "TestRefreshJWT.cs" scripts can help you get started to write your own scripts
- Main 3 methods in the "MintNFT.cs" class are "Upload", "Mint" and "RefreshJWT"
string result = MintNFT.Upload(string APIKEY, List<IMultipartFormSection> formData);
string result = MintNFT.Mint(string APIKEY, string JWT, string stringifiedJsonBody);
string result = MintNFT.RefreshJWT(string APIKEY, string REFRESH_TOKEN, string stringifiedJsonBody);
To get the APIKEY, JWT and REFRESH_TOKEN a please go to API dashboard - https://app.0xmint.io/create/api
To check the formats of the formdata, json body, etc. please check our documentation here - https://docs.0xmint.io/
This section will highlight all the third part SDKs or features added by community builders
Easily add payments and NFTs to your Unity WebGL project - no coding necessary. Users can purchase NFTs to grant access to content, purchase in-game items, provide ad-free experiences, buy tickets to in-game events, and lots more!
You can use Unlock SDK features in two ways
- If you are cloning this repository and using the project as is, the Unlock package will automatically be added to the project at the time of initialization. Then you can proceed by referring the official Unlock Unity SDK documentation(mentioned below).
- If you are using the unitypackage from the releases, make sure that you add the Unlock package to your project. First, open the Package Manager by opening
Window/Package Manager. Then click on the + button on the upper-left-hand corner of the Package Manager, select "Add package from git URL..." on the context menu, then paste the following:https://github.com/thehen/unlock-unity-package.git?path=/Unlock%20Unity%20Package
To continue implementing the Paywall functionality using Unlock protocol, refer the official package documentation here - Link to Documentation
In v2 of the APIs, creating a custom contract from the API dashboard is mandatory.
WE ARE DEPRECATING V1 APIs AND SUGGEST THE USAGE OF ONLY V2 APIs!