“AK::SpatialAudio::SetGameObjectInRoom: 未注册游戏对象”。之前未使用 AK::SoundEngine::RegisterGameObj 将传递给 AK::SpatialAudio::SetGameObjectInRoom 的游戏对象注册到 Wwise。
推荐的解决步骤:
分析游戏执行的 API 调用:打开 Profiler Settings,并启用 API Calls(API 调用)选项。重新测试场景,并检查函数在此错误之前收到的参数。
使用 AK::SoundEngine::RegisterGameObj 将所述游戏对象注册到 Wwise。