Last updated
Was this helpful?
Last updated
Was this helpful?
Want to use Yarn Spinner in a new scene right away? Follow these steps.
Create a new empty Unity project, by following .
Install Yarn Spinner into the project, by following the instructions in .
Add the Dialogue System prefab to the scene:
In the Project pane, scroll down to the Yarn Spinner folder. You'll find it in the Packages section.
Inside the Yarn Spinner folder, open the Prefabs folder, and locate the Dialogue System prefab.
Drag the Dialogue System into your scene.
Create a new , by opening the Assets menu and choosing Create -> Yarn Spinner -> Yarn Script. Name the new file HelloYarn
.
Open the new Yarn script by double-clicking it.
Select all of the text in the file, and delete it.
Copy the text below, and paste it into the file.
Save the file and return to Unity.
Attach the Yarn Project to the Dialogue Runner, by selecting the Dialogue Runner in the Hierarchy, and dragging the Project
into the Yarn Project field.
Play the game by clicking the Play button at the top of the window. Your dialogue will appear!
You can learn about our recommended editor, Visual Studio Code with the official Yarn Spinner Extension at: .
Create a new that uses this script, by selecting the HelloYarn
file, and clicking the Create New Yarn Project button in the Inspector. This will create a new Yarn Project called Project
.
Quickly get started with a simple scene.