Description

When recording shape information, descriptions are offset from the shape.

Licensee Message -

I noticed that the capsule vis log description labels were not lining up after replaying the recording, but instead were misaligned and significantly off to the right.

I'm not sure if this is the complete fix but what seemed to resolve this locally for me is to divide the XPos and YPos values by the canvas DPI scale. I found a couple of other functions that call `DrawShadowedString` doing the same thing.

That is, change this line in `RenderDescription`:

```

Canvas->Canvas->DrawShadowedString(XPos, YPos, PrintString, Font, Color);

```

to:

```

const float DPIScale = Canvas->GetDPIScale();

Canvas->Canvas->DrawShadowedString(XPos / DPIScale, YPos / DPIScale, PrintString, Font, Color);

```

Steps to Reproduce
  • Record any editor based play session with something that triggers a call to a vis log shape (I was using capsules) and ensure it has a non-empty description.
  • Stop editor play and in the Rewind Debugger play back to the point where your shape is captured.
  • Notice that the description label does not line up with the origin of the shape as you move the camera around

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-261745 in the post.

0
Login to Vote

Fixed
ComponentUE - AI - Debugging
Affects Versions5.5
Target Fix5.6
Fix Commit41195721
CreatedMar 25, 2025
ResolvedMar 31, 2025
UpdatedApr 7, 2025
View Jira Issue