Author Topic: Resolution switch problems on iPhone and iPad  (Read 14844 times)

PapaWhiskey

  • Guest
Re: Resolution switch problems on iPhone and iPad
« Reply #15 on: December 22, 2012, 01:25:23 PM »
and from what I can tell (yes i've had time to search the forums) the solutions lie within other users scripts that at some day may or may not be integrated into NGUI...

still disconcerting that the UIAnchor sample did not work "out of the box"...might want to update the eval version IMO.

Phil

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Resolution switch problems on iPhone and iPad
« Reply #16 on: December 23, 2012, 06:49:27 AM »
Free version is pretty old -- from back in May. Everything should work in the full version.

PapaWhiskey

  • Guest
Re: Resolution switch problems on iPhone and iPad
« Reply #17 on: December 23, 2012, 11:18:02 AM »
hmm...

went ahead and purchased on asset store this morning...imported into new unity project with nothing in it

uianchor is still not a poster child for resolution issues. while running, change resolution from 1280x800 to anything else, and portions of the ui are now cut off.

as mentioned yesterday, it seems the solution to resolution/aspect changes while using NGUI lie in using other developer scripts. I will try those upon return from holiday...either that or documentation needs an overhaul...i do recall one poster in the forums indicating that the naming of variables and their intended usage was counter-intuitive.

i bought it through the asset store, so i dont know if that will invalidate a refund if it turns out that NGUI is still not the solution for us. I will let you know privately after evaluation.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Resolution switch problems on iPhone and iPad
« Reply #18 on: December 23, 2012, 06:33:18 PM »
If your UI is getting cut off with UIAnchor used, then you are either not using it correctly, or are not quite grasping how to use it. If you post some pics of what gets cut off, I can give you some suggestions on how to fix it.

PapaWhiskey

  • Guest
Re: Resolution switch problems on iPhone and iPad
« Reply #19 on: January 04, 2013, 09:12:05 AM »
back from holiday...sorry for the delay in reply

create new empty unity project
switch platform to android
set resolutuion to 1280x800
import ngui project
press play
switch resolution
top of background is cut off
change manual height, no effect
change max height, no effect
switch resolution back to 1280x800, still cut off.

as of others have stated since my last post, there is still an apparent need for clarity...links to the tutorials and the forums don't seem to be curing the problems folks are having...apologies in advance if you've already made a current tutorial and updated documentation for resolution issues.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Resolution switch problems on iPhone and iPad
« Reply #20 on: January 04, 2013, 01:24:10 PM »
Your game is paused. The UI won't be resized while it's paused. It must be actually playing.

PapaWhiskey

  • Guest
Re: Resolution switch problems on iPhone and iPad
« Reply #21 on: January 04, 2013, 01:31:32 PM »
I paused to alt-tab to run the snip tool to take the screen grab...

PapaWhiskey

  • Guest
Re: Resolution switch problems on iPhone and iPad
« Reply #22 on: January 04, 2013, 02:00:13 PM »
i notice you DID add a new video on the 24th...that shows a difference in our approach...you're manually resizing the game window to random resolutions...i'm using the actual resolution button on the game window to pick an actual Android resolution...but even saying that... i posted first, then went back and tried your approach of undocking the game window...it's still not behaving as in your video tutorial...maybe it's all just an editor thing that needs to be fixed? I'll try it today on my two devices...samsung galaxy s and nexus 7 tablet...
« Last Edit: January 04, 2013, 02:10:47 PM by PapaWhiskey »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Resolution switch problems on iPhone and iPad
« Reply #23 on: January 04, 2013, 08:19:07 PM »
The game must be playing or you need to use Unity 4.1 in order for the UI to update after resizing the window.

PapaWhiskey

  • Guest
Re: Resolution switch problems on iPhone and iPad
« Reply #24 on: January 05, 2013, 07:48:37 AM »
The game must be playing or you need to use Unity 4.1 in order for the UI to update after resizing the window.

I'm sorry, I thought I pointed out that I was running when making resolution switches...and is it now a requirement to be using Unity 4.x?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Resolution switch problems on iPhone and iPad
« Reply #25 on: January 05, 2013, 07:50:51 AM »
Nah, I simply changed Unity 4.1 to call update after screen size changes while in Edit mode, something Unity 4.0 and earlier don't do.

Keep in mind, switching the resolution via that drop-down may not actually give you the resolution you want, but simply change the aspect ratio (unless your actual window is large enough). Click the Stats button to see your actual window's size.

PapaWhiskey

  • Guest
Re: Resolution switch problems on iPhone and iPad
« Reply #26 on: January 05, 2013, 07:57:16 AM »
good to know that we dont need to upgrade Unity. I use "maximize on play" and going from a 1280x800, which fits and draws as expected, and stats verifies, to a 480x320 should obviously fit...if it's just a refresh or update issue, we'll figure out away around it to make sure we still have WYSIWYG...if we find that it works on device, we can also just build the GUI at our "source scale" and trust it to work when deployed...

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Resolution switch problems on iPhone and iPad
« Reply #27 on: January 05, 2013, 08:15:25 AM »
Well, I don't know what else to say, so I made a video.

http://www.tasharen.com/ngui/reschanges/

PapaWhiskey

  • Guest
Re: Resolution switch problems on iPhone and iPad
« Reply #28 on: January 05, 2013, 01:50:10 PM »
appreciated...

to be fair to Tasharen, I don't doubt it works, and many are using it successfully.

However the supplied sample didn't "work", the tick boxes are not intuitive, alot of the answers are scattered throughout the forums, there is difference in how users use Unity and how Tasharen uses it, and there appears to be at times communication errors in the support forum...the video shows the anchor boxes work, as they did in the sample, it's the cutting off of the background that I've been focusing on, so if I failed to convey that, thats my fault, although I thought the screen capture I posted showed that was the thing I had an issue with...

thanks

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Resolution switch problems on iPhone and iPad
« Reply #29 on: January 05, 2013, 03:35:56 PM »
Sounds like this may answer your questions: http://www.youtube.com/watch?v=XAeRXckXMMw