Author Topic: UIRoot scaling on "Android Keyboard"  (Read 3912 times)

flaengel

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 5
    • View Profile
UIRoot scaling on "Android Keyboard"
« on: June 30, 2014, 11:54:55 AM »
Hi, Im using a UIRoot with fixed size...
But when the Android Keyboard apear the whole scene get's rescaled
Is there a way to prevent this, and still use the UIRoot as fixed size ?

Thanks


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIRoot scaling on "Android Keyboard"
« Reply #1 on: July 01, 2014, 04:03:00 AM »
Isn't that an OS and/or Unity option? Neither of my Android devices do this, for example (using default build values).

flaengel

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 5
    • View Profile
Re: UIRoot scaling on "Android Keyboard"
« Reply #2 on: July 01, 2014, 11:50:43 AM »
well thats an "OS" thing since the screen size changes when the virtual keyboard is shown ....
The this is, I don't need NGUI to keep resezing on all screen size changes, only when the first load is done for example.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIRoot scaling on "Android Keyboard"
« Reply #3 on: July 02, 2014, 03:58:48 AM »
NGUI isn't resizing here. The camera's aspect ratio changes. This is basic 3D game engine functionality in action. When the aspect ratio changes, you see either more or less on the sides. In fact, if NGUI *was* resizing, then you wouldn't see that.

flaengel

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 5
    • View Profile
Re: UIRoot scaling on "Android Keyboard"
« Reply #4 on: July 02, 2014, 07:59:29 AM »
But is there a workaround this?
 :-\ :'(

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIRoot scaling on "Android Keyboard"
« Reply #5 on: July 03, 2014, 03:49:46 AM »
Well as I mentioned, it's an OS setting, so you need to look for an OS solution. I'm sure there is a way to set that somewhere. It's just not NGUI-related. If you had a 3D world there, it would also get extended around the edges.

flaengel

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 5
    • View Profile
Re: UIRoot scaling on "Android Keyboard"
« Reply #6 on: July 03, 2014, 02:21:18 PM »
I found a "workarround" is not quiet what I want, but will work for now...

If the status bar is hidden this behavior wont happen.