menu
版本
2024.1.5.8803
2024.1.5.8803
2023.1.13.8732
2022.1.19.8584
2021.1.14.8108
2019.2.15.7667
2019.1.11.7296
2018.1.11.6987
2017.2.10.6745
2017.1.9.6501
2016.2.6.6153
2015.1.9.5624
2024.1.5.8803
2023.1.13.8732
2022.1.19.8584
2021.1.14.8108
2019.2.15.7667
2019.1.11.7296
2018.1.11.6987
2017.2.10.6745
2017.1.9.6501
2016.2.6.6153
2015.1.9.5624
Wwise Unity Integration Documentation
|
For Wwise 24.1.2 and 23.1.10 and above, the Wwise Addressables Installer is available, which will automatically handle the installation/uninstallation process.
Wwise Addressables Package 的官方存储目录为 https://github.com/audiokinetic/WwiseUnityAddressables。
如需进一步了解如何使用 Git 存储库中托管的数据包,请参阅 Unity 文档。
info | 备注: | 若显示 No "git" executable was found 错误消息,则须将 git.exe 可执行文件存储目录添加到系统环境,并在必要时重启系统以使更改生效。 |
info | 备注: | 为确保能够正常使用 Wwise Addressables,须同时将 Unity Addressables Package 添加到工程中。该数据包被列为 Wwise Addressables Package 的依赖项,应当会自动安装。 |
在更新到新的 Wwise 版本时,建议先更新 Unity 集成,再更新 Wwise Unity Addressables Package。
在发布 Wwise 小版本或大版本的同时,也会发布对 Wwise Unity Addressables Package 的更新。不过,不一定要那么频繁地进行更新。每项更新都标记有发布和测试时使用的 Wwise 版本。我们的目的是保证新的 Unity 集成版本和老的 Wwise Unity Addressables Package 版本之间的兼容性(除非需要实施重大更改)。比如,Wwise Unity 集成 2021.1.7 及更高版本跟 21.1.7 标签之前的 Wwise Unity Addressables Package 版本之间是不兼容的。每个 GitHub 标签在存储库的版本页面上都有一个对应的条目,其描述了所作的更改以及版本兼容性。
Wwise Unity Addressables Package 应当与最新的 Unity Addressables Package 版本兼容。而且,跟老的版本应当也兼容。不过,1.16.0 之前的版本并未经过测试。在默认情况下,Wwise Unity Addressables Package 使用针对 Unity 集成支持的最低 Unity 版本验证的最新版本 Addressables Package。有关支持的 Unity 版本列表,请参阅 版本说明 - Wwise Unity 集成 2024.1.5 章节。
步骤 1:在 Project Settings > Wwise Integration > Generated SoundBanks Path 中,设置所生成 SoundBank 的目标目录。
warning | 注意: 为了确保能够正常导入 SoundBank,请务必将此目录设在 Assets 文件夹内。 |
Assets\WwiseData\Banks
。info | 备注: | When the target directory is changed in the Unity Wwise Project Settings, the Output Path for the external sources won't be adjusted automatically in the Wwise Project. If necessary, make sure to adjust it based on the changes made for the Root Output Path. |
步骤 2:在 Wwise 设计工具内或使用 Wwise Picker 生成 SoundBank。
步骤 3:依次单击 Window > Asset Management > Addressables > Groups。这时将打开 Wwise Addressables Groups 窗口。
在默认情况下,会针对每个部署平台创建一个包含平台专用 SoundBank 素材的分组。 另外,还会针对每个部署平台创建仅包含 Init SoundBank 的单独分组。
若检视场景中的 WwiseGlobal 对象,会发现其添加了 Init Bank Holder 组件。
info | 备注: | The Init Bank Holder will only be added to the currently open scene. If the project contains multiple scenes, make sure all the scenes have been opened and saved, or alternatively, use the script under Tools > Reload All Scenes. ![]() |
步骤 4:为 Addressables 创建 Wwise Build Script。
AddressableAssetsData/DataBuilders
下。步骤 5:检查 Addressables 设置。
步骤 6:将 BuildScriptWwisePacked 添加到 Addressables 构建脚本。 在 AddressableAssetSettings 所对应的 Inspector 中,将步骤 4 创建的 BuildScriptWwisePacked 素材添加到 Build and Play Mode 脚本。
您可以在 Addressables Groups 窗口中使用 Wwise Build Script 构建 Addressables 素材包。 这样会在 Library\com.unity.Addressables\StreamingAssetsCopy\aa\<Platform Name>
下生成所有通用素材包(如 Default Local Group)及平台专用素材包。
warning | 注意: Wwise Build Script 会修改 WwiseData 分组架构的 Include in Build 属性。 若分组名称中带有 WwiseData,则只有该名称同时带有目标构建平台名称才会将其包含其中。 您可以在 BuildScriptWwisePacked.cs 脚本中修改此行为。 若要通过 Include in Build 属性手动控制将哪些分组包含在内,则可直接使用默认构建脚本。 |
一旦完成 Addressables 素材构建,就可以照常构建工程了。
warning | 注意: 在修改工程或向其添加新的 SoundBank 后,须重新构建 Addressables 分组。 此外,在切换平台后也要重新构建 Addressables 分组。 |
在构建目录下:
StreamingAssets\aa\
。在移除此数据包后,需执行一些附加步骤来确保 Wwise Integration 能够正常工作。
.meta
file associated with the folder as well.<UnityProject>\Packages\manifest.json
文件中的对应行。