Skip to content

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.

dojo.unity demo

Prerequisites

Setting up Dojo Starter

Follow the steps outlined in the Dojo Starter setup guide:

  1. Launch Katana.
  2. Build with Sozo.
  3. Launch Torii.

Setting up dojo.unity

  1. Open the scene: In the Project tab, navigate to Assets/Spawn And Move/Scenes/Sample scene

  2. Adjusting Scriptable Objects:

    • Verify that the player address and player private key in Assets/Spawn And Move/Dojo5.0Data match the output of the Katana terminal.
    • Verify that the world address in the Scriptable Object located at Assets/Dojo/Runtime/Config/WorldManagerLocalConfig matches the output of the Sozo migrate command.

Running the Example

  1. Play the opened scene.
  2. To spawn an entity, press the space key.
  3. 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, simply right-click on it.