github YarnSpinnerTool/YarnSpinner-Unity v2.0.0-beta2
v2.0.0 Beta 2

latest releases: v2.4.2, v2.4.0, v2.4.1...
pre-release3 years ago

This is the second beta for Yarn Spinner 2.0. If you haven't read the release notes for the first beta, we strongly suggest you read those first to learn what's new in Yarn Spinner 2.0!

Yarn Spinner is made possible by your generous patronage. Please consider supporting Yarn Spinner's development by becoming a patron!

Added

  • InMemoryVariableStorage now shows the current state of variables in the Inspector. (@radiatoryang)
  • InMemoryVariableStorage now supports saving variables to file, and to PlayerPrefs. (@radiatoryang)

Changed

  • Inline expressions (for example, One plus one is {1+1}) are now expanded.
  • Added Help URLs to various classes. (@radiatoryang)
  • The Upgrader window (Window -> Yarn Spinner -> Upgrade Scripts) now uses the updated Yarn Spinner upgrade tools. See Yarn Spinner 2.0.0-beta2 release notes for more information on the upgrader.
  • Fixed an issue where programs failed to import if a source script reference is invalid
  • Fixed an issue where the DialogueUI would show empty lines when showCharacterName is false and the line has no character name

Removed

  • The [[Destination]] and [[Option|Destination]] syntax has been removed from the language.
    • This syntax was inherited from the original Yarn language, which itself inherited it from Twine.
    • We removed it for four reasons:
      • it conflated jumps and options, which are very different operations, with too-similar syntax;
      • the Option-destination syntax for declaring options involved the management of non-obvious state (that is, if an option statement was inside an if branch that was never executed, it was not presented, and the runtime needed to keep track of that);
      • it was not obvious that options accumulated and were only presented at the end of the node;
      • finally, shortcut options provide a cleaner way to present the same behaviour.
    • We have added a <<jump Destination>> command, which replaces the [[Destination]] jump syntax.
    • No change to the bytecode is made here; these changes only affect the compiler.
    • Instead of using [[Option|Destination]] syntax, use shortcut options instead. For example:
// Before
Kim: You want a bagel?
[[Yes, please!|GiveBagel]]
[[No, thanks!|DontWantBagel]]

// After
Kim: You want a bagel?
-> Yes, please!
  <<jump GiveBagel>>
-> No, thanks!
  <<jump DontWantBagel>>
  • InMemoryVariableStorage no longer manages 'default' variables (this concept has moved to the Yarn Program.) (@radiatoryang)

Don't miss a new YarnSpinner-Unity release

NewReleases is sending notifications on new releases.