Yarn Spinner for Unreal Engine

This is a pre-release of Yarn Spinner for Unreal Engine. There will be bugs, we might change the API or features with an update, or something may break. We don’t recommend you use it to ship a game yet. Tell us about anything you find with the feedback form.

Yarn Spinner for Unreal Engine lets you write your game’s dialogue in Yarn and run it in Unreal. It’s a plugin, written in C++, with components, assets and editor tools that you add to your Unreal project. Everything in it is usable from Blueprints, so you can set up dialogue, handle Commands, read and write variables and build your own Presenters without writing any C++.

You write dialogue in .yarn files, in the same Yarn language used by every version of Yarn Spinner. Unreal compiles them when it imports them, as part of a Yarn Project. On an Actor in your Level, a Dialogue Runner plays the dialogue, and Presenters put it on screen: lines of text, options for the player to choose from, voice-over, or anything else you build. Commands and Functions connect your Yarn Scripts to your Blueprints and C++ code, so a line of dialogue can move a character, and your game can decide which options appear.

The Unreal Editor with BP_Rosa selected in the Outliner and its YarnDialogueRunner component selected in the Details panel, and the Dialogue Yarn Project asset in the Content Browser.
A Yarn Project asset and a Dialogue Runner in the Unreal Editor.

What you need

Requires Unreal Engine 5.4 or later For Yarn Spinner 3.3.x
  • If you need to use an earlier version of Unreal Engine, contact us.
  • The Yarn Spinner for Unreal Engine plugin. Installation explains how to get it and add it to your project.
  • ysc, the Yarn Spinner compiler, which needs the .NET SDK. Installation covers this too.

Where to start

If you’re new to Yarn Spinner, start with Installation, below. Then read Understanding Yarn Spinner, Setting Up Your Unreal Project and Showing Dialogue in order.

If you’ve used Yarn Spinner with another engine, you already know the basics. Showing Dialogue and Connecting to Your Game cover how they work in Unreal.

There’s no sample project for Unreal yet. One is coming during the pre-release period.

Next step Installation Add the plugin to your Unreal project, and install the Yarn Spinner compiler.
Start here Installation Add the plugin to your Unreal project, and install the Yarn Spinner compiler.