Page 1 of 1

Question about Resource folder

Posted: Mon Jan 13, 2020 6:35 pm
by nathanj
Hi Tony

With the Lipsync integration the files are to be placed in a resource folder. Ultimately this is fine, but the situation I currently find myself in is that we have multple builds all within the same project. What this means is in the project folder we have multiple resource folders with build specific audio files that are being included in all builds. (My terminology might be a little confusing here, by project I mean the whole unity project, by build I mean specific projects for unique clients).

Rather than using the Resource folder for the audio files would it be possible to include a folder path to the build specific audio files?

Thanks in advance,
Nathan

Re: Question about Resource folder

Posted: Mon Jan 13, 2020 7:16 pm
by Tony Li
Hi Nathan,

It's not possible to selectively include/exclude specific Resources folders for different build targets. It's a Unity limitation.

However, Unity and the Dialogue System also support assetbundles.

Instead of putting the LipSync files in Resources folders, you can put them in assetbundles. Load only the assetbundle(s) you need for each build. After you load the assetbundle, tell the Dialogue System about it by calling DialogueManager.RegisterAssetBundle(assetbundle). The Dialogue System will automatically look for LipSync files in all registered assetbundles as well as any Resources folders.

Re: Question about Resource folder

Posted: Mon Jan 13, 2020 7:36 pm
by nathanj
Thanks Tony,

That makes total sense. Thanks for the quick response.

Happy New Year!

Nathan

Re: Question about Resource folder

Posted: Mon Jan 13, 2020 7:40 pm
by Tony Li
Happy New Year!