版本
menu

Wwise Unity Integration Documentation
调整 Unity Editor Settings

Wwise Integration Settings 可在 Wwise Integration 分区下的 Project Settings Window (Edit > Project Settings...) 中找到。

有关 Wwise 声音引擎初始化中所用的工程设置,请参阅 调整 Wwise Initialization Settings 页面。

Wwise Project Settings

Wwise Project Path:此项表示与此游戏关联的 Wwise 工程的存储位置。建议存放在 Unity Project 根文件夹(Assets 文件夹之外)。

Wwise Application Path:此项表示 Wwise 应用程序的存储位置。需使用其来在 Unity 内生成 SoundBank。

Editor Behaviour 设置

SoundBank 选项会因是否使用 Unity Addressables 而有所不同。有关 Addressables 的详细信息,请参阅 在 Unity 中使用 Wwise Addressables Package 章节。

Wwise StreamingAssets Path: Location of the SoundBanks relative to (and within) the StreamingAssets folder. 可在构建游戏时使用其将生成的 SoundBank 复制到工程中。若在工程中安装了 Unity Addressables Package,则不显示此选项。

Root Output Path: Location of the generated SoundBanks of your project. With the Addressables package, ensure that the path is under the project's Assets folder so that SoundBanks are imported properly.

Copy SoundBanks at pre-Build step: If selected, SoundBanks are copied to the location specified by Wwise StreamingAssets Path during building and deployment. 建议选中此选项。若在工程中安装了 Unity Addressables Package,则不显示此选项。

Generate SoundBanks at pre-Build step:此项用于在执行预构建操作的过程中在复制前生成 SoundBank。若是在特定编译机上生成 SoundBank,建议不要选中此选项。若在工程中安装了 Unity Addressables Package,则不显示此选项。

Create WwiseGlobal GameObject:WwiseGlobal 对象是一个包含 Wwise 声音引擎 Initializing 和 Terminating 脚本的游戏对象。在 Editor 工作流中,会将其添加到每一场景,以便在 Editor 中正常预览。在游戏中,只会在第一个场景中创建一个实例。该实例将在整个游戏当中保持有效。建议将此方框保留为选中状态。

Add Listener to Main Camera:为了能够正常定位,需要将 AkAudioListener 脚本关联到每一场景中的主镜头。若想将听者绑定到另一 GameObject,请取消选中此方框。

Auto-delete WwiseObjectReferences:对于引用 Event、SoundBank 和 Bus 等 Wwise 对象的组件,将使用 Wwise/ScriptableObjects 文件夹中创建的 WwiseObjectReference 素材追踪这些引用。若在选中此选项的情况下从 Wwise 工程中移除了 Wwise 对象,则在解析 Wwise 工程结构时将删除 Wwise/ScriptableObjects 文件夹中的对应素材。

Load Sound Engine in Edit Mode:在 Edit Mode 下加载 Sound Engine。您可以禁用此设置来确认是否已在游戏中正确初始化 Sound Engine。若禁用此设置,则 Inspector、Timeline 等功能中不会播放任何声音。只有在 Editor 中单击 Play 才能听到声音。此设置会影响 Enter Play Mode 行为

Show Spatial Audio Warnings:在没有配置 Spatial Audio 正常运行所需的 Wwise 组件时显示警告消息。建议将此方框保留为选中状态。

WAAPI 设置

Connect to Wwise:若选中此项,则 Editor 将反复尝试与 Wwise 设计工具实例建立 WAAPI 连接。

WAAPI Port:此项表示所要连接到的端口。可在 Wwise 设计工具中确认(Project > User Settings 下)。默认值为 8080。

WAAPI IP address:此项表示运行 Wwise 设计工具的设备的 IP 地址。若其在同一机器上运行,则使用 127.0.0.1。

Wwise Error Message Translator 设置

Error Translator 用于在有相应信息时将错误消息中的数字 ID转换为用户可读的名称。您可以通过 SoundBanksInfo.xml 或 WAAPI 来实现这一操作。

若 SoundBank 文件旁边有 SoundBanksInfo.xml 文件(可选),通过 XML 来实现会更快一些。

WAAPI 的优势在于可直接从 Wwise 实例读取最新信息。不过网络通信速度可能会很慢,因为其在默认情况下是禁用的。

XML Translator Timeout:此项表示分配给 XML 文件阅读器来搜索 ID 的最长时间(毫秒)。若设为 0,则将其禁用。

WAAPI Translator Timeout:此项表示分配给通过 WAAPI 连接来搜索 ID 的最长时间(毫秒)。若设为 0,则将其禁用。


此页面对您是否有帮助?

需要技术支持?

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

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

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

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

开始 Wwise 之旅