Hi, I have recently shifted my project to use addressables. But, all the audios don't play after building the project.
I did the following changes for addressables -
Changed 'Reference speech files' - Use Addressables.
Added AddressableIsPresent symbol in player settings.
Checked all audio files as 'Addressable'.
Edited addressables key names as just 'filename', instead of default 'Assets/.../Sounds/filename.wav'
Console does not show any error either after build. Am I missing something?
AC verison - 1.73
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Welcome to the community, @Amateur.
Is audio playing when testing in the Editor?
The way Unity retrieves addressables in builds is different to that in the Editor - you need to build your addressables data beforehand. This is a case of choosing Build → Build Default Build Script in your Addressable Groups window.
If you check your Player log, you should find some messages related to this when audio is missing.
Thanks for replying.
I did build the addressables and uploaded the files in my AWS bucket.
No, it does not play even on editor. Also, I found no errors in the logs.
If it's not playing in the Editor, check your Console. You should be getting warnings if an expected key is not found.
Let's see screenshots of an example Dialogue: Play speech Action, its entry in the Speech Manager, and the Addressable AudioClip it uses.