Author Topic: Convert Atlas made for PC to Mobile  (Read 2071 times)

azvampyre

  • Guest
Convert Atlas made for PC to Mobile
« on: July 30, 2013, 01:17:05 PM »
Is it possible? How is it done?

The Atlas itself seems to resize perfectly, but the widgets themselves are far too tiny to touch properly.
I tried resizing each widget but it caused major problems.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Convert Atlas made for PC to Mobile
« Reply #1 on: July 30, 2013, 04:36:38 PM »
Change your UIRoot to "fixed size". There is no conversion needed.

azvampyre

  • Guest
Re: Convert Atlas made for PC to Mobile
« Reply #2 on: July 30, 2013, 04:47:53 PM »
I changed the UIRoot to fixed size and manual height from 720 to 380 and its much better, but all the panels are now huge and off screen. If I change the size in inspector then the labels can't be read nor does it respond to clicks. If I keep the fixed height at 720 then the widgets are too small.
I'm trying to use it with RPG Kit to be more visible on Android. I updated to the newest version of NGUI which is on the asset store as of yesterday.
How can I resize the panels to fit on screen after changing the UIPanel fixed height?
Thanks.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Convert Atlas made for PC to Mobile
« Reply #3 on: July 30, 2013, 06:58:27 PM »
Changing fixed size means you're changing the screen's pixel density. 380 means the UI will behave as if you were running it on a screen that's only 380 pixels tall.

If your widgets are too small with 720, you should create a bigger UI. The UI you create at a fixed resolution will keep their size regardless of screen size changes.

However -- if you create a screen that fills the screen with a 16:9 aspect ratio, expect things to be cut off when you view it on a 4:3 aspect ratio. To get it to look right on both, the UI must be modular, and multiple anchor points must be used. Watch the "catering to different screen resolutions" video on the NGUI doc page and examine the first example that comes with NGUI.

azvampyre

  • Guest
Re: Convert Atlas made for PC to Mobile
« Reply #4 on: July 30, 2013, 09:43:48 PM »
I'm sorry, but I've tried three times.
When I make a new UI, it doesn't give me an option for size.
If I manually specify height in UIRoot, the larger I make it, the smaller the widgets.
I watched the videos and read the docs but I'm still not finding the answer.
I have 8 anchors and the UI resizes fine, but the widgets are still too small.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Convert Atlas made for PC to Mobile
« Reply #5 on: July 31, 2013, 01:26:08 PM »
Well yes, the larger you make the manual height, the smaller the UI gets because NGUI is sizing itself to be relative to that value. 100x100 widget is going to look huge on a 320x240 screen (manual height 240), but tiny on a 2880x1800 screen (manual height 1800).

Why don't you resize the wigets themselves to make them bigger instead of messing with the UIRoot? Leave the UIRoot at some default value like 720.