[UMG] Creating lines between different widgets

Hello,

I’m trying to create a dynamic tree chart in my interface.

The nodes for tree are contained in this organization:

   Canvas Panel -> Border -> Canvas Panel -> ScrollBox(V) -> Scroll Box (H) -> Node

As a tree chart, I want to be able to connect the different nodes in my tree. The problem lies with getting the positions of the Nodes in the coordinates that I want.

I realize from my searches that it’s not linear to get the coordinates for those nodes but I can’t seem to get the positions.

I tried to get the cached geometry from those slots and convert local to viewport (Local Coordinates = 0,0) but the final Viewport Position is not the correct one.

Has anyone tried to do something like this? Can anyone help me?

I realized that I don’t need to know the absolute viewport positions in order to draw the line between two nodes. So, with some math I managed to achieve my objective.