Author Topic: NGUI multiscreen support !!!  (Read 3841 times)

doncarlos91

  • Newbie
  • *
  • Thank You
  • -Given: 4
  • -Receive: 0
  • Posts: 27
    • View Profile
NGUI multiscreen support !!!
« on: October 04, 2014, 02:26:14 PM »
Hi all,
I`m new in NGUI and i have a some naive questions  :-\ 

I want to build a multiscreen UI structure with NGUI and i don`t know:

1) How can I separate resources and how many atlases i need  - if i want to give HD resources  for all devices ?
2) Can i build UI for biggest screen resolution and then scale down it fitting by screen size - if YES - how? :)
3) How to adjust overall view depending on screen ratio?

Thanks, P.S - sorry for my english
« Last Edit: October 04, 2014, 02:40:59 PM by doncarlos91 »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI multiscreen support !!!
« Reply #1 on: October 05, 2014, 09:01:48 AM »
There are many, many topics covering this on this forum if you just do a search.

Easiest thing to do is to leave UIRoot in Constrained mode. Everything will scale automatically. If you want SD/HD/UHD atlases, you can also swap them in based on the screen size. Your layout doesn't need to change if your atlases have their pixel size set accordingly. Read up on those features in the documentation for UIAtlas.

doncarlos91

  • Newbie
  • *
  • Thank You
  • -Given: 4
  • -Receive: 0
  • Posts: 27
    • View Profile
Re: NGUI multiscreen support !!!
« Reply #2 on: October 08, 2014, 02:13:17 AM »
Thank you Aren - i have found a lot of information about multiscreen support, also i have found RetinaPro plugin for NGUI - what do you think - is that plugin popular for NGUI ? It`s seems very good, but i have not found good examples builded on RetinaPro :)

Also is it possible create Different Layouts For Different Screen Sizes with NGUI ?

Thanks
« Last Edit: October 08, 2014, 04:24:57 AM by doncarlos91 »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI multiscreen support !!!
« Reply #3 on: October 08, 2014, 01:23:22 PM »
I'm not the right person to ask about add-ons as I don't use any. When I need some feature, I add it to NGUI myself.

Sure, you can create different layouts for different screen sizes, but it's generally better to use the built-in anchoring system on widgets to make your UI modular instead. Have things attached to sides and corners of the screen -- minimap in the top right corner, for example.