Draw line in the center of the UI

Hello.

I want to draw the dynamic line in UI, that shows character speed by length and his direction (XY). This script works fine, but i cant draw line in the center of the screen or the Widget blueprint.

In the Widget Blueprint

In the game
image

I’d try it like this:

Same result( This doesnt fix problem(

When i change the window scale, my UI is still in the center, but this “drawn line” is moving around.

Replace viewport size with:

image

The rest should probably stay the same.

Its works! Thank you so much

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.