2D Toolkit Forum

2D Toolkit => Support => Topic started by: idpokute on April 19, 2014, 07:17:00 pm

Title: how can I get pixles per meter on the script?
Post by: idpokute on April 19, 2014, 07:17:00 pm
how can I get pixles per meter on the script?
I thought it's in the tk2dcam, but i couldn't find it.
Title: Re: how can I get pixles per meter on the script?
Post by: unikronsoftware on April 20, 2014, 10:10:57 am
You can get it from the tk2dCamera.cameraSettings.orthographicPixelsPerMeter if you're using that. But under most circumstances this is just going to be constant for a game isn't it? If there is a good enough reason I'll expose this as a property.