Author Topic: UI in windows phone 8 resolution screens  (Read 3971 times)

waheed11

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 6
    • View Profile
UI in windows phone 8 resolution screens
« on: February 11, 2014, 05:48:43 AM »
Hello,

I tried to use NGUI practices for creating UI in different resolution screens , and everything is fine in mobile/tablet android and mobile/tablet iOS , but with windows phone 8 doesn't work , the ratio and sizes of UI objects are not accurate.

Please how to keep ratio and sizes of UI objects working correctly in windows phone 8 as well
 I've attached a screenshot from the windows phone 8 to show how the UI elements are too small 
Thank you ,,,
Waheed11

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UI in windows phone 8 resolution screens
« Reply #1 on: February 11, 2014, 08:16:10 PM »
Your screenshot is missing... Also, what version of Unity and NGUI are you using?

waheed11

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 6
    • View Profile
Re: UI in windows phone 8 resolution screens
« Reply #2 on: February 12, 2014, 12:53:47 PM »
Thank you ArenMook for your reply ,

I've attached the screenshot

Unity3d version : 4.3

NGUI version : 3.0.9 f1

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UI in windows phone 8 resolution screens
« Reply #3 on: February 13, 2014, 12:51:32 AM »
Please update to the latest version first.

waheed11

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 6
    • View Profile
Re: UI in windows phone 8 resolution screens
« Reply #4 on: February 14, 2014, 02:14:27 AM »
Thank you,
I updated to the last version v3.4.9 , but the problem is same,
Please , I need to solve this problem in order to complete the project

Thank you

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UI in windows phone 8 resolution screens
« Reply #5 on: February 14, 2014, 05:07:48 AM »
So how should it look like?

waheed11

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 6
    • View Profile
Re: UI in windows phone 8 resolution screens
« Reply #6 on: February 14, 2014, 08:40:16 AM »
It should look like the attached screenshot

Thanks

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UI in windows phone 8 resolution screens
« Reply #7 on: February 15, 2014, 01:00:35 AM »
So the screen size is different. If UIRoot is set to Pixel Perfect, then devices that have a bigger screen will have smaller looking UI, because it's in pixels.

Set the UIRoot to Fixed Size and it will keep the same size regardless of screen resolution.

waheed11

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 6
    • View Profile
Re: UI in windows phone 8 resolution screens
« Reply #8 on: February 15, 2014, 02:01:57 PM »
Thank you for your answer ,

I used "FixedSizeOnMobiles" and it works fine on all Devices ios/android (phones/tablets) except Windows Phone 8. Do I need to change to "FixedSize" , if so do I need to re-test it again with all devices ?


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UI in windows phone 8 resolution screens
« Reply #9 on: February 16, 2014, 02:17:10 AM »
Ah, got it... there is a missing "if windows phone 8" check. I'll add it in, thanks.

UIRoot, line 68 is:
  1. #if UNITY_IPHONE || UNITY_ANDROID
should be:
  1. #if UNITY_IPHONE || UNITY_ANDROID || UNITY_WP8 || UNITY_BLACKBERRY