create mesh on runtime from points

How can I create mesh on runtime from points.

example:

I want the user to add points to the screen and the application will automatic connect them together to create one mesh from these points on runtime.

There’s an example in the manual, read the “creating a mesh from scratch” section.

I did but when it comes to 5 points or more things gets messy

No, probably not. The math involved is most likely quite complex (have never done it myself). Here’s a link I found to help get you started. Good luck.

is creating a mesh is my only option or there is another way to do it