Yarn Scripts
Learn about Yarn scripts, which are the assets that contain the dialogue you write.
Last updated
Was this helpful?
Learn about Yarn scripts, which are the assets that contain the dialogue you write.
Last updated
Was this helpful?
A Yarn script is a text file containing your dialogue.
To create a new Yarn script in Godot, follow these steps:
Open the Project menu, and choose Tools > YarnSpinner -> Yarn Script.
Choose a directory and filename for the new Yarn script in the dialog that appears.
You can edit .yarn scripts with the text editor of your choice. To open your editor from within Godot, ensure that you have associated .yarn files on your computer with your desired editor. Then, right click a .yarn script in the Filesystem panel and click Edit in External Program. When you save your changes and return to Godot, it will be re-compiled.
The new file that you've just created will contain a single , which has the same name as the file.