版本
menu
Wwise Unity Integration Documentation
|
AkGameObj
组件相当于 Unity 游戏对象和 Wwise 对象之间的桥梁。您可以使用 AkGameObj
追踪 Unity 中的声音对象的位置,并将其用于 Game Sync(如 Switch 和 RTPC)和环境变量。
所有传给 Wwise 的对象(包括绑定有 AkAudioListener
的对象)都要绑定 AkGameObj
组件。在将所述组件添加到 Inspector 中的 Unity Game Object 时,也会自动添加 AkGameObj
组件。所有绑定有 AkGameObj
组件的对象都在 Wwise 中注册并根据 Unity 对象的生命周期来注销。
在使用 Game-defined Auxiliary Sends 时,确保发声体(同时包含 AkGameObj 和 AkEvent 组件)和 AkEnvironment 组件都包含 Collider。AkEnvironment 组件要使用 Collider 检测“发声体”游戏对象,并确保将其信号发送到对应的 Auxiliary Bus。
AkGameObj
必须绑定 Rigidbody。此选项只有在播放场景之前选中才会生效。AkAudioListener
的游戏对象。![]() | 备注: | 必须至少存在一个听者。If you do not use the default listeners or specify another one, ensure that Automatically add Listener to Main Camera is selected in the the Wwise Editor settings (see 调整 Unity Editor Settings). |