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 addressandplayer privatekey inAssets/Spawn And Move/Dojo5.0Datamatch the output of the Katana terminal. - Verify that the
world addressin the Scriptable Object located atAssets/Dojo/Runtime/Config/WorldManagerLocalConfigmatches 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
spacekey. To select an entity for movement, simplyright-clickon it.