Audiokinetic's Community Q&A is the forum where users can ask and answer questions within the Wwise and Strata communities. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

+1 vote

My project need hotupdate and so update soundbank when loading, to file path Application.persistentDataPath

but even though i AddBasePath to SoundEngine, It's failed to load bank Init.bnk

when write script to check ,these file are all exist in the right place.

Code: (set path)

        rootPath =  UnityEngine.Application.persistentDataPath;
        fullBasePath = "assets";
        fullBasePath = System.IO.Path.Combine(rootPath, fullBasePath);
        AkSoundEngine.AddBasePath(fullBasePath );

Result:

1. SoundEngine init success
2. load Init.bnk fail error AK_FILE_NOT_EXIST
2. var files = System.IO.Directory.GetFiles(fullBasePath ); // test
Init.bnk exist in variable files

how can i get the load path when akbankmanager  use loadbank("Init.bnk")?

 

in General Discussion by zhao t. (110 points)

Please sign-in or register to answer this question.

...