playMaker

Author Topic: Get Screen Aspect Ratio  (Read 2796 times)

amaranth

  • Full Member
  • ***
  • Posts: 172
    • View Profile
Get Screen Aspect Ratio
« on: August 14, 2012, 11:46:45 AM »
I think it would be cool if there was an action that allowed us to obtain the aspect ratio, based on the screen width and screen height.

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2488
  • Yup.
    • View Profile
    • Cleverous
Re: Get Screen Aspect Ratio
« Reply #1 on: August 14, 2012, 02:21:43 PM »
You can probably throw something together on your own, the unity script reference has info if you search it.

http://docs.unity3d.com/Documentation/ScriptReference/Camera-aspect.html

Doesn't seem too complicated.

Slater

  • Full Member
  • ***
  • Posts: 123
    • View Profile
Re: Get Screen Aspect Ratio
« Reply #2 on: August 19, 2012, 06:52:16 PM »
Yeah I agree that it would be nice to have as an action :)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14692
  • Official Playmaker Support
    • View Profile
Re: Get Screen Aspect Ratio
« Reply #3 on: August 20, 2012, 12:30:17 AM »
Hi,

 If no one stepped in before next week, bump this post, and I'll make that action.

bye,

 Jean

amaranth

  • Full Member
  • ***
  • Posts: 172
    • View Profile
Re: Get Screen Aspect Ratio
« Reply #4 on: August 27, 2012, 06:24:00 PM »
bumping. :)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14692
  • Official Playmaker Support
    • View Profile
Re: Get Screen Aspect Ratio
« Reply #5 on: August 28, 2012, 12:04:12 AM »

Slater

  • Full Member
  • ***
  • Posts: 123
    • View Profile
Re: Get Screen Aspect Ratio
« Reply #6 on: September 18, 2012, 06:05:08 PM »
Just saying thank you for this action. Have it up and running in my app right now and it works great! Thanks Jean.