YarnSpinnerTool / YarnSpinner-Unity

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

UnityLocalisedLineProvider cannot load voice correctly #249

Closed ESunsui closed 1 year ago

ESunsui commented 1 year ago

What is the current behavior? When using UnityLocalisedLineProvider with VoiceOutView, Voice cannot be loaded, Console LogError: Playing voice over failed because the localised line line:******* either didn't have an asset, or its asset was not an AudioClip.

Please provide the steps to reproduce, and if possible a minimal demo of the problem: Follow: https://docs.yarnspinner.dev/using-yarnspinner-with-unity/assets-and-localization/unity-localization#localising-assets

What is the expected behavior? System Consistent with In-built Localisation.

Please tell us about your environment:

Other information Problem solved with: UnityLocalisedLineProvider.cs change line 200 tovar entry = table.GetEntry("line:" + id); change line 210 to if (loadOperation.IsDone == true)