Hello guys,
I have a problem with UMG over here. I want to draw a line between a widget component in WidgetBP #1 and a widget which is drawn on top (the settings menu) WidgetBP #2. It should be a line connecting the button you pressed with the menu that opened. The part where the menu is spawned (before the Add Child to Canvas is only a Create Widget node):
Notice the variable “Wrapper Position” which contains the position of the widget which I just created. Then I try to draw the line inside OnPaint as following:
But the result looks like this:
The fat orange line is a line I drew in paint which shows how it SHOULD look. The thin line is the line drawn by Unreal. Now the line should go to the red circle, but it goes somewhere to the edge of the screen… Do I need to do some conversion between absolute and local space or something to get what I want? Thanks.