A Portal must connect rooms that belong to separate Room hierarchies. Room hierarchies are created with
AK::SpatialAudio::SetReverbZone
, which creates parent-child relationships between rooms.
推荐的解决步骤:
分析游戏执行的 API 调用:打开 Profiler Settings (Alt-G),并启用 API Calls(API 调用)。Retest your scenario and check the parameters given to the function before this error occurred.
Ensure that the Rooms specified with
AkPortalParams::FrontRoom
and
AkPortalParams::BackRoom
passed to
AK::SpatialAudio::SetPortal
do not share the same parent, and are not in the same hierarchy of Rooms created by Reverb Zones.
AK::SpatialAudio::SetReverbZone
must not create a parent-child or sibling relationship between rooms that are already connected by a portal.