Draw line(spline) in ui during drag and drop

DenisKalou
Thu, 26 Oct 2023 01:00:23 +0000
Programming & Scripting

Hello, Can anyone help with problem: I’m trying to draw a line(spline) in widget during drag operation. But as I understand, while drag and drop operation is active it takes player controller and calling Get Mouse Position Scaled by DPI function returns 0,0. As I tested there is another function Get Mouse Position on Viewport, but I assume it is bad practice to call it in game. Is there any possibility to draw line from drag start to mouse cursor?
Additionally, i’m interested how to draw curved line, filled with some images(i.e. arrows) in widget. I think I should interpolate curve line points and draw widgets from this points. Is there somewhat more clever approach to this problem?

8 posts - 2 participants