RenderLine(s) API changes #3073
Replies: 4 comments 8 replies
-
I like it! Especially the convenience methods. I don't really use line rendering outside of debugging purposes, though. |
Beta Was this translation helpful? Give feedback.
-
Looks good. Can |
Beta Was this translation helpful? Give feedback.
-
A few comments:
|
Beta Was this translation helpful? Give feedback.
-
ok for a test I added it to extras (just locally, not in PR), and this is how I'd expect it to be used as an example
I added static Debug.get function so that this can be easily used in many files without allocating debug and then passing it around the scripts. It's kind of a singleton, but per application. So in any script you can simply call Debug.get(app) and then use it to render debug things. Thoughts on this @willeastcott ? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm working on line rendering changes here #3019 and would like to change the API to make it simpler and remove the layers of deprecated functionality from current API.
Current line render API:
Proposed new line rendering API:
changes:
drawLine draws a single line with a single color
if more lines or more colors are needed, drawLines needs to be used
Additional convenience function:
Beta Was this translation helpful? Give feedback.
All reactions