A simple line renderer for UGUI that multithreads most of its workload using Unity's C# Job System. UILineRenderer inherits from Unity's UI.Graphic Component. This project is setup with Unity 2021.2.6f1 and URP, but should work with most editor versions that support Job System and Burst with any render pipeline.
Example Use:
uiLineRenderer.SetPositions(vector2Array);
...or slightly more efficiently:
uiLineRenderer.SetPositions(float2Array);
Features:
- Set points from script
- Rounded end caps
- Simple segment joins
In Consideration:
- Set 3D positions for points
- Maskable
- Closed loop lines
- Per-point line width
- Set points in inspector
- Mitered segment joins
- Rounded segment joins
- New end cap shapes
- Dashed lines
- Gradients
- Start/end colors
MIT License.