Coder Social home page Coder Social logo

phantasma-io-archive / phantasma-unitypackage Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 5.0 6.6 MB

Unity SDK for Phantasma

License: MIT License

C# 86.25% JavaScript 1.27% ShaderLab 10.64% HLSL 1.85%
blockchain crypto cryptocurrency phantasma phantasmaio sdk unity layer1 phantasmachain smartnft smartnfts

phantasma-unitypackage's Introduction

UnitySDK

Unity SDK for Phantasma

Adding the SDK to your project

To add the SDK to your project, you need to:

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

phantasma-unitypackage's People

Contributors

teknopt avatar relfos avatar

Stargazers

bgrock avatar  avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.