YarnClassic
YarnClassic copied to clipboard
Unity not detecting updated text unless I replace the old files.
I have a .yarn file in a unity project folder. I can open it in the editor and add nodes. I can close the editor after changing things. If I reopen in the yarn editor, it maintains the changes. However, when unity loads the yarn file, the old text is shown. But if I save as>replace the old file, unity re imports the file and the changes show up. Choosing to re import the files normally does nothing. What is the issue here?
So YarnEditor keeps things in local app storage unless you explicitly save, either with the save button (under File or with Ctrl+S) or with the save as buttons like you described here. So it doesn't actually change the file itself until you tell it to, just the representation of the data in its own local storage. This is working as intended as most editors work like this, VSCode for example has this functionality. Just be sure to hit Ctrl + S when you're done with your changes and it should just save automatically without you having to do anything extra.
Let me know if I misunderstood!
Note: Saving while editing the text of a node is currently bugged and will be fixed when #237 gets merged to the main branch. For now, just make sure you exit out of the text editor before hitting Ctrl+S.