Hello Guest

Author Topic: how can I get pixles per meter on the script?  (Read 3133 times)

idpokute

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 6
    • View Profile
how can I get pixles per meter on the script?
« 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.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: how can I get pixles per meter on the script?
« Reply #1 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.