Generate a texture from an array of points that forms a closed figure

I have a json that contains an array of coordinates(x,y) and that coordinates represent a closed figure.
If i pass this array into a linerenderer the result is the one in the figure below. But what im trying to do is to make an actual texture for this figure. Right now i only need a monocromatic texture nothing complicate.
Can someone give me a hint?
4761002--452471--Capture.PNG

anything that you can render in Unity can instantly be turned into a texture, using a render texture:

Edit: Note that a RenderTexture only exists on the GPU and so it’s only meant to be used for very temporary stuff. If you want make a permanent texture, than use Texture2D.ReadPixels:

1 Like