How do you make a random 2D shape in Unity?
Hi,
I am working on a game and part of the game requires random 2D shape generation. The game is completely 2D. I would like to be able to change the border and fill of the shape, but that should be quite simple to work out. Also, is it possible to add a specific script to each random 2D shape? I want to make a polygon, specifically speaking.
Thank you.
-8Development
Needs more description. Is it a random tetris/$$anonymous$$ecraft shape, made out of some cubes stuck together? Is it a random triangle / 4-sided? Can it have curves, for example an 8, half-circle or clover? Do you have certain premade shapes and just want to pick one?
A trick is to start just drawing all the possible shapes you might want, and not want. Then you can figure out your shape-making rules better.