optical pentagon

Unity asset for drawing lines, curves and poligons on 2D sprites in Unity. It includes simple C# functions for drawings from script and an editor window that calls them.

Features

  • All the rendered lines and shape borders are antialiased
  • Draw broken lines and Bezier curves
  • Draw regular polygons
  • Draw poligons given an arbitrary set of vertices. It handles intersections of the sides by drawing the non-intersecting external path
  • Draw circles and ellipses
  • Draw shapes whose perimeter is composed on an arbitrary list of broken lines and/or Bezier curves (only from code)
  • Bucket tool
  • Merge two generic textures

Go to

Code Tutorial - overview and examples of the C# functions that allows you to draw on Unity sprites

Editor Guide - tutorial on how to use the Unity editor window

Examples - some images and the code for their generation