3 ms·
I wondered what you meant by Shapes, so I googled "Freya Holmér Shapes" and found this, which is awesome -- thanks for the tip! Shapes: A real-time vector grap
by DonHopkins 5y ago
I wondered what you meant by Shapes, so I googled "Freya Holmér Shapes" and found this, which is awesome -- thanks for the tip!
Shapes: A real-time vector graphics library for Unity by Freya Holmér:
https://acegikmo.com/shapes https://acegikmo.com/shapes
>It has bothered me for a long time that for some reason, html5 canvas is better at drawing primitives than Unity.
I know, right?!?
I was quite frustrated by the fact that it was so much easier to draw 2d stuff with html5 canvas than with Unity, that I integrated a web browser with Unity and used it to do 2d data driven drawing (graphing, data visualization, text, and ui widgets) with JavaScript / canvas / d3 / etc, and then blitted the textures into Unity to display in UI overlays and 3d textures.
One advantage to that approach is that you can use any of the zillions of excellent well-supported JavaScript libraries like d3 to do the 2d drawing.
And I wanted to write as much of my Unity application in JavaScript as possible anyway, so it was easier to debug and (orders of magnitude) quicker to iterate changes (and possible to live-code).
UnityJS description and discussion:
https://news.ycombinator.com/item?id=22689040 https://news.ycombinator.com/item?id=22689040
Shapes looks really wonderful, and would have been perfect for some of my Unity projects, so I'll check it out and consider using it in the future!