In the code below, I’m trying to draw some text in the lower-right corner using SCanvas, However the text appears in the middle of the viewport (see pic below). Changing position to have a value of (size*2) - textSize moves the text past the lower-right corne. Does the GameViewport or SCanvas have a scale transform set by default? Any suggestions for what I’m doing wrong?
Thanks for the response, but I’m looking for an explanation of why SCanvas isn’t putting the child widget where I think it should go. The example is just to show what I’m seeing so hopefully someone can explain why the text widget isn’t going to the position I’m passing to the slot.
Thanks to Nick Darnell and JonathanADaley’s answer in this question, I was able to fix it. I was not taking into account the DPI scaling. I added JonathanADaley’s GetUMG_DPI_Scale function and replaced line 12 in my code with: