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);
```
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-261745 in the post.
0 |
Component | UE - AI - Debugging |
---|---|
Affects Versions | 5.5 |
Target Fix | 5.6 |
Fix Commit | 41195721 |
---|
Created | Mar 25, 2025 |
---|---|
Resolved | Mar 31, 2025 |
Updated | Apr 7, 2025 |