版本

menu_open
Wwise Unity Integration Documentation
在 Inspector 中使用 AkGameObj

AkGameObj 组件相当于 Unity 游戏对象和 Wwise 对象之间的桥梁。您可以使用 AkGameObj 追踪 Unity 中的声音对象的位置,并将其用于 Game Sync(如 Switch 和 RTPC)和环境变量。

所有传给 Wwise 的对象(包括绑定有 AkAudioListener 的对象)都要绑定 AkGameObj 组件。在将所述组件添加到 Inspector 中的 Unity Game Object 时,也会自动添加 AkGameObj 组件。所有绑定有 AkGameObj 组件的对象都在 Wwise 中注册并根据 Unity 对象的生命周期来注销。

在使用 Game-defined Auxiliary Sends 时,确保发声体(同时包含 AkGameObjAkEvent 组件)和 AkEnvironment 组件都包含 Collider。AkEnvironment 组件要使用 Collider 检测“发声体”游戏对象,并确保将其信号发送到对应的 Auxiliary Bus。

  • Apply Position Offset: Applies a second Transform to the game object, to specify an audio calculation position different from the game object's actual position.
    • Position Offset:按照 X(左右)、Y(上下)和 Z(前后)字段中输入的游戏单位来移动游戏对象二次 Transform 的位置。
    • Hide Main Transform:从视图中移除一次 Transform,以便仅显示应用了偏置的二次 Transform。
  • Environment Aware: Determines whether the audio of the game object is affected by the environment, rooms, and portals. 若启用该选项,则 AkGameObj 必须绑定 Rigidbody。此选项只有在播放场景之前选中才会生效。
    • Add Rigidbody: Creates a Rigidbody component on the game object.
  • Room Aware: Determines whether the audio of the game object is affected by AkRoom components. When using Spatial Audio, emitters and listeners must have AkRoomAwareObject components.
  • Attenuation Scaling Factor: The attenuation scaling factor of the game object, which adjusts audio attenuation for Unity.
  • Use Default Listeners:Default Listener 一般会应用于中心对象(如 Camera)。它将监听所有未绑定听者的游戏对象。
    • Add Listener:另外指定一个听者。单击该按钮来打开 Select AkAudioListener 对话框,以便选择绑定有 AkAudioListener 的游戏对象。
      备注:必须至少存在一个听者。若不使用 Default Listener 或另外指定一个听者,请确保在 Wwise Integration 设置中选中 Automatically add Listener to Main Camera(参见 调整 Unity Editor Settings 章节)。
  • Attenuation Scaling Factor: The Attenuation Scaling Factor of the game object.
参见

此页面对您是否有帮助?

需要技术支持?

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

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

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

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

开始 Wwise 之旅