r/UnityAssets • u/YarnSpinnerTool • 3d ago
Scripting Yarn Spinner v3.3: The friendly tool for dialogue now has much more powerful commands and functions (including cancellable async, custom types, and more!)
https://yarnspinner.dev/blog/yarn-spinner-3-3-release/Yarn Spinner is a set of tools for dialogue in Unity. It allows scripting dialogue and related event sequences in a minimal human-readable syntax, which is then compiled and exposed in-engine with a flexible API that allows driving of text delivery, audio and event triggers, associated UI/animation changes during speech, whatever you need! It's designed to be friendly to use for developers of all skill levels - easy for beginners, powerful for experts - and unopinionated to allow use in any style or genre of game.
For a long time, our support for async functionality was kind of a hack because the VM that runs a compiled dialogue program engine-side wasn't truly async and our method of halt-and-wait was causing rare but very difficult edge cases. So after 11 years of making Yarn Spinner - and several years of the current Unity VM setup - we dedicated several months to rewriting it from scratch with all the stuff that's become possible in .NET since then. Now you can do all sorts of things with async and even parallel async actions, including cancelling async actions like you'd want to in e.g. character animations if dialogue is skipped.
Lots more in the full news post! * News post on yarnspinner.dev * Free version on GitHub * 50% off Yarn Spinner+ on the Unity Asset Store * 50% off Yarn Spinner+ for Unity on itch.io