Author Topic: FixedSizeOnMobile not working on WP8 (Solved)  (Read 6602 times)

grofie

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 1
  • Posts: 17
    • View Profile
FixedSizeOnMobile not working on WP8 (Solved)
« on: July 07, 2014, 06:55:21 AM »
Hi guys,

we got another problem with windows phone (using Unity v4.5.1f3, NGUI 3.6.4b):

The scaling style FixedSizeOnMobile on UIRoot is not working on WP8 (on iOSX and Android it's running fine),
the GUI never scales and is always way to small. If we change the setting to FixedSize only, the scaling works fine.

Edit: Just tried the new version 3.7, still same problem.
« Last Edit: July 09, 2014, 07:58:47 AM by grofie »

grofie

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 1
  • Posts: 17
    • View Profile
Re: FixedSizeOnMobile not working on WP8
« Reply #1 on: July 08, 2014, 03:12:36 AM »
We changed all UIRoots to FixedSized and its working for wp8. I still dont understand why wp8 is not counted as mobile..

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: FixedSizeOnMobile not working on WP8
« Reply #2 on: July 08, 2014, 12:12:04 PM »
Due to a missing #if on line 132 of UIRoot.cs.

You can see that line 79 reads:
  1. #if UNITY_IPHONE || UNITY_ANDROID || UNITY_WP8 || UNITY_BLACKBERRY
...but line 132 is only iPhone and Android. I will fix that, but you should fix that locally as well. Thanks for bringing it to my attention.

grofie

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 1
  • Posts: 17
    • View Profile
Re: FixedSizeOnMobile not working on WP8
« Reply #3 on: July 09, 2014, 07:43:30 AM »
Thx Aren,

that solved the problem! ;D