Yarn Spinner for Unity v2.5


Yarn Spinner v2.5!

📜 Changes

Added

  • DialogueRunner.AddCommandHandler and DialogueRunner.AddFunction now validate that the provided names contain no spaces.
  • DialogueRunner.AddCommandHandler now supports methods whose last parameter is an array of strings.
    • This allows for commands with a variable list of parameters. For example, consider the following method:
      void LogStrings(int a, string[] remainder) {
        Debug.Log($"a = {a}, remainder={string.Join(",", remainder)}");
      }
      
      This method can be registered as a Yarn command:
      dialogueRunner.AddCommandHandler<int, string[]>("my_command", LogStrings);
      
      And called from Yarn Spinner:
      // logs "a = 42, remainder=this,is,pretty,great"
      <<my_command 42 this is pretty great>> 
      

      [!NOTE] Array parameters are required to be string arrays, and are required to be the last parameter of the method.

  • Yarn Spinner’s XML documentation is now included in the distribution.

Changed

  • Fixed an issue where, on Windows, projects would fail to automatically update when a file that belonged to them was created or edited.
  • Fixed an issue where Unity Localization rid values would change on reimport when they didn’t have to.
  • Fixed an issue where a [pause/] marker at the start of the line would cause all pauses to not work (@iatenothingbutriceforthreedays)
  • Inspector-exposed fields on LineView are now public.
  • Fixed an issue where a .meta file was causing warnings to appear in Unity on import. (@Colbydude)
  • YarnProjectImporter.GenerateStringsTable is now public.
  • Yarn Projects now allow choosing more specific cultures (for example ‘pt-BR’ and ‘en-AU’ rather than simply ‘pt’ and ‘en’) as their base language.
  • Fixed a issue where AudioLineProvider would throw an exception if an asset was already loaded and was requested a second time.

Files

Previous Version: Yarn Spinner for Unity v2.5.2 (42f84a92) 5.1 MB
95 days ago
Yarn Spinner for Unity Samples v2.5.2 (42f84a92) 23 MB
95 days ago

Get Yarn Spinner for Unity

Buy Now$50.00 USD or more

Leave a comment

Log in with itch.io to leave a comment.