Posted February 25, 2025 by Yarn Spinner
#yarnspinner #yarn #spinner #gamedev #secret lab #narrative #tools
Yarn Spinner v2.5!
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.
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.
rid
values would change on reimport when they didn’t have to.[pause/]
marker at the start of the line would cause all pauses to not work (@iatenothingbutriceforthreedays)LineView
are now public..meta
file was causing warnings to appear in Unity on import. (@Colbydude)YarnProjectImporter.GenerateStringsTable
is now public.AudioLineProvider
would throw an exception if an asset was already loaded and was requested a second time.