Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bassmit/lineburst
Plot functions and draw large amounts of debug lines, shapes and text to the Unity game and scene view
https://github.com/bassmit/lineburst
burst dots unity
Last synced: 3 months ago
JSON representation
Plot functions and draw large amounts of debug lines, shapes and text to the Unity game and scene view
- Host: GitHub
- URL: https://github.com/bassmit/lineburst
- Owner: bassmit
- License: mit
- Created: 2021-03-11T10:38:14.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-08-14T16:35:55.000Z (over 1 year ago)
- Last Synced: 2024-08-02T05:13:19.950Z (6 months ago)
- Topics: burst, dots, unity
- Language: C#
- Homepage:
- Size: 160 KB
- Stars: 88
- Watchers: 6
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.txt
Awesome Lists containing this project
README
# LineBurst
## Introduction
Plot functions and draw large amounts of debug lines, shapes and text to the Unity Game and Scene View, from BURST compiled jobs or MonoBehaviours.## Installation
If [OpenUpm](https://openupm.com/packages/com.bassmit.lineburst/) is not installed, ensure node.js is installed so you have access to npm and run:
npm install -g openupm-cli
To add LineBurst to a Unity project, open a prompt in the project root and run:openupm add com.bassmit.lineburst
## Getting Started
Create a LineBurstRenderer behaviour, then use the thread safe static APIs like:
Draw.Line(a, b, Color.red);
When the amount of elements to be drawn is known allocate the required buffer in one operation:var spheres = new Draw.Spheres(amount);
for (int i = 0; i < amount; i++)
spheres.Draw(points[i], radii[i], colors[i]);
For additional examples install the Samples through the package manager.## Notes
The default font is missing lower case letters and many signs, a basic editor is provided in the scene view when a font is selected, pull requests are welcome ; ) The Unity Physics package forms the basis of this package.