Skip to content

Instantly share code, notes, and snippets.

@Starviling
Starviling / README.txt
Last active December 4, 2024 14:43
YarnSpinner loading from line
To set this up in Unity, it needs to:
1. have a reference to the DialogueRunner in the scene
2. be added to the Dialogue Views in the DialogueRunner
3. MAKE SURE THAT Yarn.LineJumper.asmdef and YarnLineJumper.cs ARE IN THEIR OWN SUBFOLDER
(This is for 2.2.2+)
To save a point, save integer returned from CurrentProgramCounter() somewhere.
To load a point, use LoadProgramCounter() with the node string name and integer saved from CurrentProgramCounter().