Hello,
We’re looking into utilizing the Soundscape plugin and when analyzing the debug output from the system, one of our engineers noticed that the debug box that draws from USoundscapeSubsystem::DrawDebugCell seems to be using the wrong box extents size.
The line that draws the box is the following:
`// If relative distance is less than LOD 1 cutoff distance, use LOD 1 Map
if (RelativeLocation.Length() < LOD1ColorPointHashDistance)
{
BoxDimensions = CalculateDebugCellDimensions(Location, ESoundscapeLOD::LOD1);
}
else if (RelativeLocation.Length() < LOD2ColorPointHashDistance)
{
BoxDimensions = CalculateDebugCellDimensions(Location, ESoundscapeLOD::LOD2);
}
else
{
BoxDimensions = CalculateDebugCellDimensions(Location, ESoundscapeLOD::LOD3);
}
FColor BoxColor = bSuccess ? FColor::Green : FColor::Red;
DrawDebugBox(GetWorld(), BoxDimensions.Key, BoxDimensions.Value, BoxColor, false, 5.0f, ‘\000’, 5.0f);`
Our engineer noticed that the BoxDimensions.Value argument passed into DrawDebugBox is supposed to be an extents value (half sizes used in conjunction with a center point). However, the value passed in is actually the boxes full size values causing the box to be drawn twice as large as it should be.
So we changed the DrawDebugBox line to the following to get more accurate looking debug values:
DrawDebugBox(GetWorld(), BoxDimensions.Key, BoxDimensions.Value * 0.5f, BoxColor, false, 5.0f, '\000', 5.0f);
We noticed this in both 5.5 and 5.6