Author Topic: Scale camera to width instead of height  (Read 1671 times)

KamiKaze425

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 6
    • View Profile
Scale camera to width instead of height
« on: August 27, 2014, 07:39:59 PM »
Hey guys,

So I have my game in portrait for mobile devices. Our UI is built for a 9:16 aspect ratio, and when a more square aspect ratio (such as 3:4) is used, the game will scale to fit the height and just leave extra space on the sides.
Is there a way to change it so that way it scales to fit the width and leave extra space on the top and bottom instead? That way, side scrolling views will be identical on any device, just that some devices will see more on the top and bottom.

Thanks!

r.pedra

  • Full Member
  • ***
  • Thank You
  • -Given: 7
  • -Receive: 20
  • Posts: 131
    • View Profile
Re: Scale camera to width instead of height
« Reply #1 on: August 28, 2014, 01:55:42 AM »
Last version of NGUI

KamiKaze425

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 6
    • View Profile
Re: Scale camera to width instead of height
« Reply #2 on: August 28, 2014, 11:52:30 AM »
Really? What setting? Is it on UIRoot or UICamera or something else?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile