Addressable and Resources folder for audio files

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
fkkcloud
Posts: 298
Joined: Mon Oct 05, 2020 6:00 am

Addressable and Resources folder for audio files

Post by fkkcloud »

Hi,

In order to use audio(voice act) files for node, do I just put them into Assets/Resources folder?
or does it also need to be registered into Addressable properly?
User avatar
Tony Li
Posts: 22051
Joined: Thu Jul 18, 2013 1:27 pm

Re: Addressable and Resources folder for audio files

Post by Tony Li »

Hi,

If you want to use addressables:

1. Use the Package Manager window to enable the Addressables package.

2. In the Dialogue System's Welcome window, tick the Addressables checkbox to allow the Dialogue System to use Addressables.

3. Do not put your audio files in a Resources folder. Tick their Addressable checkboxes and set their addressable key strings to match what you plan to use in your Audio()/AudioWait() sequencer commands. If you plan to have more than a few audio files, I recommend using entrytags. Name your audio files according to their entrytags.

If you're not going to use addressables -- or if you just want to test quickly for now -- put the audio files in Resources. When they're in Resources, Unity will load them all into memory at start (which is not ideal if you have a lot of files), but it will be able to find them without any extra work on your part.
Post Reply