Using Image Wheel
Learn how to use the Image Dialogue Wheel, from the Dialogue Wheel for Yarn Spinner Add-On Package.
The Image Dialogue Wheel provides a dialogue wheel with a light sci-fi appearance, and can display up to six responses for your dialogue. You can specify exactly which segment of the wheel each response is located.
Using the Image Dialogue Wheel
To use the Image Dialogue Wheel make sure your Unity project has the Yarn Spinner package installed, and the install the Dialogue Wheel for Yarn Spinner package.
Then, create a new Dialogue System in your Hierarchy:

Make a folder to store your Narrative in the Project pane (ours is named Narrative
), and then inside that folder, create a new Yarn Project asset:

Similarly, also in the Narrative
folder, create a new Yarn Script to use:

Name both the Yarn Project and the Yarn Script something appropriate. Open the Yarn script to write your story. Then save the Yarn script and return to Unity.
We've provided an initial sample story here, if you want to test things out.
With the Dialogue Runner selected in the Hierarchy, drag the Yarn Project that you created from the Project pane into the Yarn Project slot in the Dialogue System's Inspector:

Next, locate the Image Dialogue Wheel prefab, supplied with this add-on, and drag it from the Project pane, so it's below the Canvas in the Hierarchy:

Right-click on the Options Presenter in the Hierarchy, and choose Delete. You won't need that view, as you'll be displaying a wheel instead of a list.
To make the Dialogue System aware of the Image Dialogue Wheel, select it (the Dialogue System) in the Hierarchy, and drag the Image Dialogue Wheel from the Hierarchy into the Element 2 slot of the Dialogue Views section in the Inspector:

Finally we want to set our story to start automatically, click on the Start Automatically toggle on the Dialogue Runner Inspector and from the Start Node drop down pick Start
. If you save your scene and run it, your Image Dialogue Wheel should now be working!

Customising the Image Dialogue Wheel
You can specify which position on the wheel your dialogue appears using tags in your Yarn scripts. Specifically, you can add tags to each set of options to specify where in the wheel the option should be placed.
For example, the following Yarn script:
title: Start
---
Narrator: Show me the positions on the Six-Segment Wheel?
-> Left Top #lt
-> Left Middle #lm
-> Left Bottom #lb
-> Right Top #rt
-> Right Middle #rm
-> Right Bottom #rb
===
Results in this:

If you select the Image Dialogue Wheel Prefab in the Hierarchy (under Dialogue System), you can look to the Inspector to customise these tags, among other options:

You can also use the Yarn Command <<set-opt>>
before each group of options in your Yarn scripts to specify how many options (limited to a maximum of three on either side) should appear in each column (left or right).
For example, the following Yarn Script:
title: Start
---
Narrator: Show some options?
-> I'm an option!
-> I'm another option!
-> I'm yet another option!
-> Me too!
===
Will result in this:

Review the provided Image Dialogue Wheel Example for more information, or check out the guide on Using Auto-Layout Dialogue Wheel.
Last updated
Was this helpful?