Question about Resource folder

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
User avatar
nathanj
Posts: 303
Joined: Sat May 28, 2016 12:30 am

Question about Resource folder

Post 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
User avatar
Tony Li
Posts: 22055
Joined: Thu Jul 18, 2013 1:27 pm

Re: Question about Resource folder

Post 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.
User avatar
nathanj
Posts: 303
Joined: Sat May 28, 2016 12:30 am

Re: Question about Resource folder

Post by nathanj »

Thanks Tony,

That makes total sense. Thanks for the quick response.

Happy New Year!

Nathan
User avatar
Tony Li
Posts: 22055
Joined: Thu Jul 18, 2013 1:27 pm

Re: Question about Resource folder

Post by Tony Li »

Happy New Year!
Post Reply