Draw.Rectangle immediate mode rendering issue with coordinates above 65535
Hi Freya,
I came across a small issue with the Draw.Rectangle function when using immediate mode. If any of the rectangle’s coordinates exceed 65535, the rectangle doesn’t render correctly when calling Draw.Rectangle(rect). However, using Draw.Rectangle(rect.center, rect.size) works as expected and draws the rectangle properly.
I don’t need any fix on my end since the second approach solves the problem, but I thought you might like to know about it.
It definitely gave me a nice little brain teaser today :)
Thank YOU for this incredible toolset, it’s fantastic to work with.
Regards,
Lajos
Reporting a bug? please specify Unity version:
6000.3.10f1
Reporting a bug? please specify Shapes version:
4.5.1
Reporting a bug? please specify Render Pipeline:
URP