Play Mode
You can simply test Asylum SDK plugin in Unity Play Mode without making a build.
After you have loaded the Asylum Unity SDK Example or added the Asylum Unity SDK Plugin to an existing project, create a GameObject with component AsylumDigitalObjectsController. Make sure you enter the user's passphrase (seed phrase mnemonic) in the AsylumDigitalObjectsController component field.
infoIf you followed Quick Install, you already have scene created, just open
Scenes/SimpleScene
and make sure thatAsylumDigitalObjectsController
component has seed phrase filled.Follow the steps of Docker setup and run the following command in terminal:
docker-compose up
infoSince you are not using WebGL it's not necessary to run Creator Studio. You can just run IPFS and Asylum Node.
cautionTo see the proper result you should have items minted on your chain. To do this you can:
- mint items manually from Blueprints: Tutorials: Items Minting,
- or reseed data with items using script: Docker Setup: Reseed Data
And now you can start Unity Play Mode.
The final result should be this. In the console you should get the Public Key that was generated from the secret phrase. And you should also see a message about the correct connection to the blockchain.