Yarn Spinner

Write your game's dialogue.
Run it in Unity, Godot or Unreal.

Yarn Spinner makes tools for planning, writing, managing and delivering your game's dialogue and narrative.

  1. 1Write branching stories in a simple, screenplay-like language.
  2. 2Compile them into something your engine can run.
  3. 3Respond to dialogue however your game needs to, with simple APIs.

It makes the fiddly bits simple:

  • Drafting
  • Feedback
  • Version control
  • Localisation
  • Voice-over
  • Porting
  • And more

Free and paid versions for Unity, Godot (C# and GDScript) and Unreal Engine, with customisable components that fit into any workflow.

Write it. Play it.

Write it

See every node in your story and how they connect, in Yarn Spinner for VS Code's graph view. Play any of them without leaving the editor.

Yarn Spinner for VS Code, with a Yarn script open on the left and the graph view of its nodes on the right.
Get Yarn Spinner for VS Code

Using VSCodium, or another editor that gets its extensions from Open VSX? Yarn Spinner works there too.

Play it

Rosa's waiting for a ferry. This is the whole script: press Run, choose what to say to her, and see where it goes.

Yarn
title: Start
---
Rosa: Oh, you made it. The ferry's late again.
-> Again?
    Rosa: Third time this week. I've started bringing a book.
-> I'll wait with you.
    Rosa: Good. The gulls get bold when you're on your own.
Rosa: There it is. Finally.
===
Ferry.yarn
Write your own in Try Yarn Spinner

Built for your engine

Yarn Spinner has official integrations for Unity, Godot and Unreal, each made to work the way that engine does.

Capsley giving a presentation in the Welcome sample, with a line of dialogue at the bottom of the screen.

Yarn Spinner for Unity

Requires Unity 2022.3.x or later.

  • Get a conversation on screen in minutes: drop the ready-made dialogue system into your scene and press Play.
  • Let your writers trigger anything in the game from their script, like playing a sound or moving a character.
  • Show dialogue however suits your game, from a simple text box to speech bubbles or a dialogue wheel with our add-ons.

Show dialogue any way you like

Every version of Yarn Spinner comes with free built-in presenters. Classic RPG and Snaaake are included when you buy Yarn Spinner+, and Speech Bubbles and Dialogue Wheel are add-ons for Unity, sold separately.

Anything you can imagine. Build your own presenter and show dialogue exactly the way your game needs, in any engine. Build your own

Built for the whole team

For writers

Write branching dialogue without learning to program

Yarn reads like a screenplay. Add choices, remember what the player did with variables, and play your story as you write it in Yarn Spinner for VS Code.

Rosa: Are you here about the lamp?
-> Yes, I heard it went out.
    <<set $knows_about_lamp to true>>
-> Just passing through.
Start the Beginner's Guide

For programmers

Connect dialogue to your game in a few lines

When a script says <<play_sound door_creak>>, Yarn Spinner calls your code. You decide how dialogue looks, and you get the full source.

[YarnCommand("play_sound")]
public static void PlaySound(string name)
{
    AudioManager.Play(name);
}
func _yarn_command_play_sound(sound):
    AudioManager.play(sound)
UFUNCTION(meta=(YarnCommand="play_sound"))
void PlaySound(const TArray<FString>& Args);
Learn about Commands

For localisation and voice

Translate and voice your game without rewriting it

Every line gets an ID. Send translators a spreadsheet, and Yarn Spinner brings their work back in and matches each voice actor's recording to its line.

Line IDEnglishFrançais
line:ferry_lateOh, you made it.Ah, te voilà.
line:ferry_hereThere it is. Finally.Le voilà. Enfin.
Read about localisation
Story Solver by Yarn Spinner.
Coming soon

Story Solver

Story Solver checks the logic of your story before your players do. It finds soft locks, nodes nobody can reach, and quests that can end up in a state you didn't plan for.

Watch the preview

Making something?

We love seeing what people make with Yarn Spinner, big or small, shipped or in progress. Tell us about your game and we might feature it here.

Tell us about it

Work with us

Studios and organisations bring us in to build games, features, and tools. We have capacity for new projects in 2026 and 2027.

Hire Us
Offered Mates' Rates A month of co-dev on your game from the Yarn Spinner team. US$5,000 flat, for the month, plus any relevant taxes
Yarn Spinner + Text Animator Bundle!

Yarn Spinner + Text Animator Bundle!

Get Yarn Spinner+ for Unity and Text Animator for Unity at one low price!
A Strange Day to Win the Adam Lancman Award

A Strange Day to Win the Adam Lancman Award

Or "all the people I would have thanked in my speech if my dog wasn't dying that day".
Monthly Update: Sep '26

Monthly Update: Sep '26

Beta updates, Unity progress, new Add-Ons, and more. We're also unveiling the first look at our new docs site, and are ready to show off Story Solver at upcoming events.