Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📝 Summary
In this PR I've added the dojo.unity SDK to the project
Type of Change
Mark with an
x
all the checkboxes that apply (like[x]
).🔄 Changes Made
What's Changed
limitations from dojo starter: it's only possible to make 100 movement steps
Technical Notes
Dojo starter setup
Navigate to the specific commit for version 1.0.0:
Use dojoup to install the required version:
Terminal one:
Terminal two
Note: The world address (0x00e2ea9b...) might differ. To verify your world address, run:
Implementation Details
Dojo World Configuration
The configuration for the dojo world is defined in two ScriptableObjects:
Assets/Dojo/Runtime/Config/WorldManagerLocalConfig.asset
Assets/Spawn And Move/GameManagerData.asset
Contracts and Models Generation
Using the command:
The bindings for contracts and models are generated. These are added to:
Assets/Spawn And Move/Models
: Used to retrieve position data from Torii.Assets/Spawn And Move/Contracts
: Used for spawning and moving transactions.SDK setup
Download the Dojo.Unity SDK
Download the SDK from the official release.
Import the SDK
Import only the Plugins folder into your Unity project.
Run the following command in your terminal to remove quarantine attributes from the plugin:
cd Assets/Dojo/Plugins/macOS xattr -d com.apple.quarantine libdojo_c.bundle
Integration in Scene
The SDK has been integrated into the
Assets/Scenes/Forest.unity
scene:Two additional MonoBehaviours are included:
A reference to
DojoSpawnAndMoveExecuter
has been added to the PlayerController, enabling:Key Implementation Details in DojoSpawnAndMoveExecuter
Initialization:
Performed in Awake.
Exposed Methods for Contracts:
An event is emitted whenever the position changes.
The PlayerController consumes this event to respond to position updates.
Evidence