An example project to show how to use Phantom deeplinks to login and use Solana NFTs in Unity games and apps.
To use it in your game just include: https://github.com/Woody4618/Solana.Unity-SDK.git in your unity packages
Check out the tutorial series for an introduction: https://www.youtube.com/watch?v=3Qts1QNC2_A&t=362s&ab_channel=SolPlay
If you want to participate, its very welcome.
Packages used:
Garbels unity solana sdk. Check out their awesome game as well! Vr Pokemon! Included using the Nuget unity package https://github.com/garbles-dev/Solana.Unity/tree/master/src
Solanart: https://github.com/allartprotocol/unity-solana-wallet
Tweetnacl: https://github.com/dchest/tweetnacl-js/blob/master/README.md#random-bytes-generation
Gif loading: https://github.com/3DI70R/Unity-GifDecoder
So far the repository is only tested in IOS mobile, Android and WebGL.
Done:
- Login and getting Public key from phantom
- Loading and caching NFTs
- Nft meta data parsing + power level calculation
- Deeplink to minting page
- Deeplink to raydium token swap
- Transactions
- In game token loading
- WebGL support
- IOS Support
- Android Support
- Smart contract interaction
Next up Todo:
- Animated Gifs
- Gtlf models
- Maybe Staking?
- Sign message
- What else would you like?