Entrytag AudioClip in a special hierarchy inside the Resources folder

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Jaximus
Posts: 5
Joined: Mon Apr 25, 2022 9:48 am

Entrytag AudioClip in a special hierarchy inside the Resources folder

Post by Jaximus »

Hi Tony,

Is there a way, or some modification I can do in some script, to be able to put my entrytag audioClip in a special hierachy inside the Resources Folder ?

For now, it work fine if I put all my audioClip in the root folder as explained in the documentation. And as soon as I put the audioClip in something like Resources/Audio/MyChapter/etc to have something a bit more organise, it's not working.

Edit : for exemple edit GetEntryTag() inside DialogueDatabase but in a nice way to allow updates ?
User avatar
Tony Li
Posts: 21679
Joined: Thu Jul 18, 2013 1:27 pm

Re: Entrytag AudioClip in a special hierarchy inside the Resources folder

Post by Tony Li »

Hi,

Let's assume your sequencer command is:

Code: Select all

AudioWait(entrytag)
There are two ways to organize your audio files into subfolders:

1. Use multiple Resources folders:

Audio/Chapter1/Resources/
Audio/Chapter2/Resources/
Audio/Chapter3/Resources/
etc.


2. Or include the path in the AudioWait command. For example, say you've grouped them into characters Ann, Bob, and Cal:

Resources/Ann/
Resources/Bob/
Resources/Cal/

Then you can use this AudioWait command for Ann:

Code: Select all

AudioWait(Ann/entrytag)
Or, to use the same command for all NPCs (assuming they're the conversation conversants):

Code: Select all

AudioWait([var=Conversant]/entrytag)

Note: Other options include using addressables or asset bundles.
Jaximus
Posts: 5
Joined: Mon Apr 25, 2022 9:48 am

Re: Entrytag AudioClip in a special hierarchy inside the Resources folder

Post by Jaximus »

The first solution is exactly what I needed. I'm not used to create multiple Resources folder in my project so I totally forget I could. But it's perfect and easy.

Thank you !
User avatar
Tony Li
Posts: 21679
Joined: Thu Jul 18, 2013 1:27 pm

Re: Entrytag AudioClip in a special hierarchy inside the Resources folder

Post by Tony Li »

Glad to help!
Post Reply