Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: getafix98 on June 12, 2014, 05:33:10 AM

Title: starting on Ngui with multiple resolutions
Post by: getafix98 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?
Title: Re: starting on Ngui with multiple resolutions
Post by: xecuter 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.
Title: Re: starting on Ngui with multiple resolutions
Post by: Darkmax 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.