Unity tool
Mesh Line 2D
A high-performance tool for drawing procedural lines and contours in Unity. It overcomes the limitations of the standard LineRenderer by generating clean mesh geometry with proper UVs: textured lines, rounded corners and high-quality outlines.
- Unity 6
- Unity Asset Store
- Editor + runtime API
- Zero GC allocations
See it in action
Screenshots
About the asset
Mesh Line 2D is a high-performance tool for drawing procedural lines and contours in Unity. It overcomes the limitations of the standard LineRenderer by generating clean mesh geometry with proper UVs, allowing for textured lines, rounded corners and high-quality outlines.
Perfect for 2D games, UI elements in world space, graphs, trajectories, custom typography (letters and numbers) and tracing mechanics (draw-along gameplay).
Powerful scene editor
Edit your lines directly in the Scene View without leaving the context of your game. Add, remove and move points effortlessly. A unique magnetic snapping system aligns points horizontally, vertically or diagonally (45°) relative to their neighbours, perfect for precision drawing. Auto-centre the pivot or set any point as the custom pivot with one click. Full support for Unity’s native Undo and Redo.
Visual features
Bezier curves with Free, Corner and Smooth point types give full control over the geometry. Render lines with solid colours or textures, in Tiling or Static mode with precise offset control. Add a border outline with adjustable width and colour in a single pass. Fill amount (0 to 1) controls the drawing progress, ideal for animated effects, health bars or tracing logic.
Rendering and collision
Generate a PolygonCollider2D that perfectly matches the line’s shape with one button press. Full control over Sorting Layers and Order in Layer from the inspector. Fully compatible with Unity Sprite Masks (stencil buffer interaction).
Performance
Zero GC allocations: runtime mesh updates use cached memory buffers to prevent garbage-collection spikes. A highly optimised mesh-generation algorithm keeps it mobile ready. ScriptableObject profiles hold global settings, so line styles stay consistent across the whole project.
Note
Mesh Line 2D renders meshes in World Space. It is not designed for the Unity UI (Canvas) system.
Upgrade your lines from pixelated artifacts to crisp, professional meshes.