Author Topic: starting on Ngui with multiple resolutions  (Read 4996 times)

getafix98

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
starting on Ngui with multiple resolutions
« on: June 12, 2014, 05:33:10 AM »
I'm just starting on Ngui, I want it to support multiple mobile resolution, my current test is for the galaxy s3
which is 720 * 1280, one of the problems is what is see on the unity screen is not what I see on the phone screen!
(that is - at the phone it's much smaller)
any reference to help me?

xecuter

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 6
    • View Profile
Re: starting on Ngui with multiple resolutions
« Reply #1 on: June 12, 2014, 07:00:41 AM »
Set the UIRoot to Fixed size.
that will take care of the height.

as for the width, you need to anchor elements to the UI Root, for them to appear accordingly.

you could make UIWidget container anchored to Left, right etc. and then anchor the children to the widget.

Darkmax

  • Jr. Member
  • **
  • Thank You
  • -Given: 2
  • -Receive: 1
  • Posts: 93
    • View Profile
Re: starting on Ngui with multiple resolutions
« Reply #2 on: June 12, 2014, 05:06:45 PM »
What i do to support android and ios, is set UIRoot Fixed size like xecuter said, and if the app is going to be just landscape set the height of the ipad2 768. This because the ipad has a more square aspect ratio. Then I anchor all my elements depending where I want it, just like xecuter said.