Example with Dojo Starter and dojo.unity
This section provides a walkthrough for running the example from the dojo.unity repository using the Dojo Starter
repository.
Prerequisites
- Clone the Dojo.unity repository.
- Clone the Dojo Starter repository.
Setting up Dojo Starter
Follow the steps outlined in the Dojo Starter setup guide:
- Launch Katana.
- Build with Sozo.
- Launch Torii.
Setting up dojo.unity
-
Open the scene: In the
Project tab
, navigate toAssets/Spawn And Move/Scenes/Sample scene
-
Adjusting Scriptable Objects:
- Verify that the
player address
andplayer private
key inAssets/Spawn And Move/Dojo5.0Data
match the output of the Katana terminal. - Verify that the
world address
in the Scriptable Object located atAssets/Dojo/Runtime/Config/WorldManagerLocalConfig
matches the output of the Sozo migrate command.
- Verify that the
Running the Example
- Play the opened scene.
- To spawn an entity, press the
space key
. - To move the entity, use the keys:
a (left)
,w (forward)
,s (backward)
,d (right)
.
You can create multiple entities by pressing the
space
key. To select an entity for movement, simplyright-click
on it.