YarnSpinnerTool / YarnSpinner-Unity

The official Unity integration for Yarn Spinner, the friendly dialogue tool.
MIT License
491 stars 85 forks source link

Adding voice clips requires Yarn Project Apply button click. #259

Closed Bryan-Legend closed 8 months ago

Bryan-Legend commented 9 months ago

After I add a new voice over file to the Assets Folder, the audio clips will not be played in game unless I somehow edit the Yarn Project and click the Apply button as shown in the inspector screenshot here. Then the new voice over clips are played correctly.

image

The system should be smart enough to detect a new audio clip is present. Or there needs to be a refresh command or something.

Bryan-Legend commented 9 months ago

Also, the docs for the voice over system could use some work. There's not really a page for it on https://docs.yarnspinner.dev/. I had to figure it out by the samples.

Bryan-Legend commented 9 months ago

Speaking of the samples, this problem happened on the Intro sample when it was first installed! I had to edit the Intro yarn project and hit apply to get the VOs to work.

Bryan-Legend commented 9 months ago

Thank you @McJones

Bryan-Legend commented 9 months ago

@McJones Will this fix also address adding new audio clips? The YarnProject will get re-imported when a new clip is dropped in an Assets Folder?

McJones commented 9 months ago

ah so good catch I totally only fixed the import ordering, not the post added issue.