playMaker

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

amaranth

  • Full Member
  • ***
  • Posts: 172
Get Screen Aspect Ratio
« on: August 14, 2012, 02:46:45 PM »
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: 2511
  • Mender of the past
    • Cleverous
Re: Get Screen Aspect Ratio
« Reply #1 on: August 14, 2012, 05: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.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

Slater

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

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Get Screen Aspect Ratio
« Reply #3 on: August 20, 2012, 03: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
Re: Get Screen Aspect Ratio
« Reply #4 on: August 27, 2012, 09:24:00 PM »
bumping. :)

jeanfabre

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

Slater

  • Full Member
  • ***
  • Posts: 123
Re: Get Screen Aspect Ratio
« Reply #6 on: September 18, 2012, 09: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.