Skip to content

OwenMagelssen/UI-Line-Renderer

Repository files navigation

UI-Line-Renderer

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.

About

Line renderer for Unity's UGUI system

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages