版本
menu_open
Wwise Unity Integration Documentation
设置 SoundBank 位置

在 Unity Editor 中运行工程时,会直接从 Wwise 工程的 GeneratedSoundBanks 文件夹调取 SoundBank 以加快原型设计速度。默认文件夹位置为 …\<UnityProjectName>\Assets\StreamingAssets\Audio\GeneratedSoundBanks

若要更改 SoundBank 位置,请依次转到 Edit > Project Settings > Wwise Editor,并根据需要更新 SoundBanks Path

在 Unity 对工程进行打包时,其不会根据目标平台有选择性地打包素材。相反,它会将指定 SoundBank 文件夹中的所有 SoundBank 打包。若要确保 Unity 仅针对所需平台构建并打包 SoundBank,请在 Wwise Editor 页面选中 Copy SoundBanks at pre-Build step

除此之外,高级 Unity 开发人员还可使用 BuildPlayerPipeline 脚本。

若使用 Unity Addressables,SoundBank 选项会略有不同。参见 为 Addressables 设置 Generated SoundBank 位置 章节。

参见

为 Addressables 设置 Generated SoundBank 位置

若在工程中使用 Unity Addressables,则须将包含所生成 SoundBank 的文件夹放在工程内,以便能够正确导入 SoundBank。

若要设置所生成 SoundBank 的路径,请依次转到 Edit > Project Settings > Wwise Editor,并根据需要更改 Generated SoundBanks Path。该位置必须在 Assets 文件夹下。

参见

此页面对您是否有帮助?

需要技术支持?

仍有疑问?或者问题?需要更多信息?欢迎联系我们,我们可以提供帮助!

查看我们的“技术支持”页面

介绍一下自己的项目。我们会竭力为您提供帮助。

来注册自己的项目,我们帮您快速入门,不带任何附加条件!

开始 Wwise 之旅