I’m drawing some debug curves in world space of my scene view. I’m looping through a fixed number (the resolution) and create a point for each iteration, which I finally connect with Debug.DrawLine().
This works well, but I would like to improve on the system by calculating how many line points/segments I need to have the curve appear round at any given zoom level in the scene view.
I’m not asking for pixel perfection, I would just like to make the resolution dependent on the current zoom level of the scene view camera. If there was a way to get that information, I think that would be enough.
There must be some EditorUtility function of the sort, since I remember, that it’s possible to draw Handles and multiply their size by some editor function which will give a constant scale for any given zoom level.
Thanks for any suggestions!