Quantcast
Channel: Questions in topic: "measure"
Viewing all articles
Browse latest Browse all 91

How to determine the number of pixels per unit?

$
0
0

I'm using the LineRenderer to produce a detailed 2D curve. I want to determine the number of pixels per unit based on the distance of the object from the camera and the output resolution of the display. This would allow me to accurately control the resolution of the curve so no matter what display resolution is used, it always appears smooth.

I'd like to do this instead of simply guessing and setting a very high resolution to begin with since on smaller mobile displays this is overkill.


Viewing all articles
Browse latest Browse all 91

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>