Draw Lines for a Polygon c++ UMG

Hi, For a game I need to be able to draw polygons on a widget with a variable number of edges.
And for each of it’s edges I need to be able to change it’s color at runtime.

So I decided to draw my polygons edge by edge one line at a time but I have no idea on how I am supposed to do. Can someone guide me please ?

I have released a plugin named “UMGPolygon”, so that you can draw custom graphs conveniently in UMG.

Marketplace Url:
https://www.unrealengine.com/marketplace/en-US/product/umgpolygon