Pardon our dust! Docs for Yarn Spinner for Unity 3.2 and Yarn Spinner for Godot C# are on docs.yarnspinner.dev (the old docs site). Docs for Yarn Spinner for Unity 3.3 (pre-release, out ASAP), Yarn Spinner for Godot GDScript and Yarn Spinner for Unreal Engine (work in progress) are on /docs/ (the new docs site).

YarnScriptResource

resource representing a single .yarn script file. used for editor integration and reference.
class_name YarnScriptResource
extends Resource

Inherits from Resource

#Properties

#content

var content: String = ""

Type String

#node_names

var node_names: PackedStringArray = PackedStringArray()

Type PackedStringArray

#source_path

var source_path: String = ""

Type String

#Methods

#get_node_content(String)

func get_node_content(node_name: String) -> String

Parameters

  • node_nameString

Returns String

Generated from Yarn Spinner for Godot GDScript 3.3.