コミュニティQ&A

Audiokineticのコミュニティ主導のQ&Aフォーラムへようこそ。ここはWwiseとStrataのユーザのみなさまがお互いに協力し合う場です。弊社チームによる直接のサポートをご希望の場合はサポートチケットページをご利用ください。バグを報告するには、Audiokinetic LauncherのBug Reportオプションをご利用ください。(Q&AフォーラムではBug Reportを受け付けておりませんのでご注意ください。専用のBug Reportシステムをご利用いただくことで、バグの報告が適切な担当部門に届き、修正される可能性が高まります。)

最適な回答を迅速に得られるよう、ご質問を投稿される際は以下のヒントをご参考ください。

  • 具体的に示す:何を達成したいのか、またはどんな問題に直面しているのかを具体的に示してください。
  • 重要な詳細情報を含める:Wwiseとゲームエンジンのバージョンやご利用のOSなど詳細情報を記載してください。
  • 試したことを説明する:すでに試してみたトラブルシューティングの手順を教えてください。
  • 事実に焦点を当てる:問題の技術的な事実を記載してください。問題に焦点を当てることで、ほかのユーザのみなさまが解決策を迅速に見つけやすくなります。

+1 支持

Basically the title. I'm guessing this is simple, but I can't see where I've made my mistake.

  • the Wwise integration in Unity would suggest that the Soundbanks should be generated into "UnityProjectName/Assets/StreamingAssets/Audio/GeneratedSoundbanks" with folders inside the GeneratedSoundbanks Folder for Windows, Mac, iOS, Android, Linux, and Windows Phone.
     
  • In Wwise, the default location to generate Soundbanks into is "WwiseProjectName/GeneratedSoundBanks" with folders inside for the platforms, and currently my Unity project only registers changes in Wwise when I generate my soundbanks here.

How can I set up my Unity Project / Wwise integration to read the Soundbanks out of the UnityProjectName/Assets/StreamingAssets/Audio/GeneratedSoundbanks folder, instead of the Wwise directory? 

If I go to "Edit>Wwise Settings" in Unity's menu bar, the Soundbank Path appears to point to "UnityProjectName/Assets/StreamingAssets/Audio/GeneratedSoundbanks", so that looks correct. However. Changes to my audio events only are reflected in my game once I've generated the soundbanks to the "WwiseProjectName/GeneratedSoundBanks" folder, even when I go to "Soundbank Manager > User Settings > Soundbanks Settings" and click "Override Project SoundBank Settings" and "Override Project SoundBank Paths" to point to the Unity project instead.

Chris P. (350 ポイント) General Discussion

回答 1

+4 支持
 
ベストアンサー

We recommend generating the SoundBanks outside of Unity's assets folder. The reason for that is that there is no way to specify platform-specific files in the StreamingAssets folder. Everything in that folder gets copied in your built game. If you have the SoundBanks for multiple platforms there, they will end up is all your builds, resulting in bloated game size.

When iterating in the Editor, the integration will actually load the banks from where Wwise generates them. In your case, the integration looks in "WwiseProjectName/GeneratedSoundBanks", and loads the banks from there. In the build game, though, the banks have to be in the StreamingAssets folder. We recommend manually copying only the SoundBanks for the platform you are building within StreamingAssets, build the game, and then delete them from StreamingAssets.

There is a way to automate this, though, and we provide an example script do accomplish that (UNITY_PROJECT_ROOT\Assets\Wwise\Editor\WwiseMenu\Common\AkExampleAppBuilderBase.cs).

For more information on all of this, you can refer to the Unity integration documentation (Help > Wwise Help), under section Wwise Unity Integration > Build for target platform.

Benoit S. (Audiokinetic) (16.0k ポイント)
Chris P. 選択
This answer doesn't work for Unity Collab.
Is this still true? When I generate soundbanks other than streaming assets folder Unity editor can't load the banks and throws "WwiseUnity: Failed to set SoundBanks base path to <C:\Dev\DoWGame\Assets\StreamingAssets\Audio\GeneratedSoundBanks\Windows\>. Make sure SoundBank path is correctly set under Edit > Project Settings > Wwise > Editor > Asset Management."
...