Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/phantasma-io/phantasma-unitypackage
Unity SDK for Phantasma
https://github.com/phantasma-io/phantasma-unitypackage
blockchain crypto cryptocurrency layer1 phantasma phantasmachain phantasmaio sdk smartnft smartnfts unity
Last synced: about 1 month ago
JSON representation
Unity SDK for Phantasma
- Host: GitHub
- URL: https://github.com/phantasma-io/phantasma-unitypackage
- Owner: phantasma-io
- License: mit
- Created: 2024-03-11T11:28:04.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-03-11T11:28:25.000Z (10 months ago)
- Last Synced: 2024-05-01T00:44:45.544Z (8 months ago)
- Topics: blockchain, crypto, cryptocurrency, layer1, phantasma, phantasmachain, phantasmaio, sdk, smartnft, smartnfts, unity
- Language: C#
- Homepage:
- Size: 6.43 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# UnitySDK
Unity SDK for Phantasma# Adding the SDK to your project
To add the SDK to your project, you need to:
* First download the [unitypackage](https://github.com/phantasma-io/UnitySDK/releases/tag/v1.1)## Second install the unitypackage by importing it to your project
* Either double-click on the file while you have your Unity project opened
* Inside Unity, on the top left go to `Assets` -> `Import Package` -> `Custom Package...` and Select the **.unitypackage**# How to connect to the Wallet via the SDK
Setup your scene, Add the PhantasmaLinkClient prefab to your scene.
* If you're developing in a local node, change the "Nexus" to `localnet`
* If you're deploying it to the testnet, change the "Nexus" to `testnet`
* If you're deploying it to the mainnet, change the "Nexus" to `mainnet`
* Change the DappID to your Dapp "contract name", this is what will appear when a user log's in to your Dapp.
* Recommended version is 2
* Wallet Endpoint default:`localhost:7090` (Don't change it)
* Regarding the Platform and Signature, For `Phantasma` -> `ED25519`, for `Ethereum` -> `ECDSA`# How to connect to the wallet via Bluetooth
The same thing as the normal method, but you need to added the PhantasmaLinkClientPlugin Prefab to your Scene.And that's it, just build for Android, you're done!
# Any further questions
- Contact Phantasma Force Team