Page 1 of 1

Audio Clip is Null

Posted: Sat Jun 20, 2015 12:49 pm
by bakershah
Hi

So I'm trying to add Voice clips and link them with my Dialogue. I'm using Audio(Elves Wish, speaker) in the sequencer. However every time I initiate the dialogue I get a yellow warning saying "Audio Command Clip is Null" and it doesn't play. Is it having trouble finding the clip? I've double checked the name and its accurate. Any solution to this?


Note: I added an Audio Source to the dialogue manager as well like the documentation says and still throws out the warning.


EDIT: Figured it out. My clips are in a separate folder. I put them in resources and it started working. How can I have it play dialogue in a specific folder other than Resources?

Re: Audio Clip is Null

Posted: Sat Jun 20, 2015 6:31 pm
by Tony Li
Hi,

To use the Audio() sequencer command, they must be in a Resources folder or an asset bundle. You can have as many Resources folders as you want, and you can have subfolders under Resources.

For example, some developers have set up their folders like this:

Code: Select all

Assets
    Menus
        Resources (contains menu-related audio clips)
    Characters
        Zelda
            Resources (contains Zelda's audio clips)
        Link
            Resources (contains Link's audio clips)
                link_hello
    etc.
In the folder structure above, you can use Audio(link_hello).

And others have set it up like this:

Code: Select all

Assets
    Resources
        Sounds
            Menu (contains menu audio)
            Zelda
                Lipsync (contains lipsync audio for Zelda)
            Link
                Combat (contains combat audio for Link)                
                Lipsync (contains lipsync for Link)
                    hello
In the folder structure above, you can use Audio(Sounds/Link/Lipsync/hello).

It all depends on how you prefer to organize your files.