Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: grofie on July 07, 2014, 06:55:21 AM

Title: FixedSizeOnMobile not working on WP8 (Solved)
Post by: grofie 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.
Title: Re: FixedSizeOnMobile not working on WP8
Post by: grofie 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..
Title: Re: FixedSizeOnMobile not working on WP8
Post by: ArenMook 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.
Title: Re: FixedSizeOnMobile not working on WP8
Post by: grofie on July 09, 2014, 07:43:30 AM
Thx Aren,

that solved the problem! ;D