Draw polygon in runtime

Look into how Procedural Mesh works, have a quick look at:

for the most fundamental ideas. YT is full of videos now that you have a keyword.