Author Topic: Screen cutting off on certain device resolutions  (Read 6238 times)

LightSky

  • Jr. Member
  • **
  • Thank You
  • -Given: 3
  • -Receive: 2
  • Posts: 56
    • View Profile
Screen cutting off on certain device resolutions
« on: January 11, 2013, 09:50:40 PM »
(Sorry if this is a noob question, I am pretty new to NGUI)

Is there a way to manipulate the size of the image to stop the width from being cut off on really thin devices?  I have my game scaling fine for "most" devices that were the same size and bigger however I have ran into this issue and am a little stuck. 

Picture taken from a smaller device


Picture from a larger device



I'm not sure if this is a problem with manipulating the camera or a simple script fix or something to do with the UI Panel.  I have been tinkering around to no avail and won't have access to a smaller device for a little while, hence why I am asking for help in find ind the solution. (Unity only offers so many different resolutions)

I will post any more info if you ask for it.
Thank you for any help :)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Screen cutting off on certain device resolutions
« Reply #1 on: January 11, 2013, 11:40:14 PM »
You can skew individual widgets by using UIStretch on them. It's generally not a good idea to skew things though, as it looks rather ugly.

LightSky

  • Jr. Member
  • **
  • Thank You
  • -Given: 3
  • -Receive: 2
  • Posts: 56
    • View Profile
Re: Screen cutting off on certain device resolutions
« Reply #2 on: January 12, 2013, 12:00:20 AM »
You can skew individual widgets by using UIStretch on them. It's generally not a good idea to skew things though, as it looks rather ugly.

Any other ideas?   I was wondering what exactly is wrong with it.  Is the screen just to small to "see" everything on the screen and simply cutting it off? If so would it be possible to alter the camera or screen via scripting to make it smaller so it shows up?  Or is there a way to alter it with the NGUI toolkit.

Majicpanda

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 83
    • View Profile
Re: Screen cutting off on certain device resolutions
« Reply #3 on: January 14, 2013, 02:14:31 PM »
You using 3 anchor's here? Bottom Left, Bottom Right, and Top?

One thing you can play with is setting the UIRoot not automatic and specify a design resolution.  Typically I will design for iPad first since it's a 3:2 ratio so that it fits larger devices automatically.

Not sure if adjusting the Manual Height on UIRoot is advised during game load or not though.

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile