Author Topic: Resizing unity Game tab window shows/hides NGUI  (Read 5550 times)

coolaneasy

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 34
    • View Profile
Resizing unity Game tab window shows/hides NGUI
« on: April 09, 2014, 01:04:53 PM »
Hi guys,
So here is whats going on. I have an Options menu that pops up on top of the game on a button click. In 16:10 resolution, this window is not visible. Then when I make the Game tab window larger it shows up.If I make it smaller the options window goes invisible again. Why would this happen? Whats the fix?
Thanks

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Resizing unity Game tab window shows/hides NGUI
« Reply #1 on: April 10, 2014, 06:43:23 AM »
Where is the window located? Is it anchored? Pics would help.

coolaneasy

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 34
    • View Profile
Re: Resizing unity Game tab window shows/hides NGUI
« Reply #2 on: April 10, 2014, 01:15:03 PM »
Hi Aren
Yes it is anchored to the center of the screen. It seems anchoring changes the z based on different resolutions. Can't give screenshots but can easily be described as "The options menu is not visible in a certain resolution(16:10) and I have to resize the editor Game tab for it reappear." I kept a watch on the z of the anchoring parent but I don't see the z changing and also when it becomes invisible changing z doesn't help. Only resizing the window bigger makes it visible again.
Thanks

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Resizing unity Game tab window shows/hides NGUI
« Reply #3 on: April 11, 2014, 07:02:45 AM »
What version of NGUI are you using and what anchoring? Sounds to me like you're using the legacy system here. Nothing changes Z with the new layout system.

coolaneasy

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 34
    • View Profile
Re: Resizing unity Game tab window shows/hides NGUI
« Reply #4 on: April 11, 2014, 05:25:37 PM »
It is indeed an old version. 2.2.7c. Unfortunately can't upgrade atm.
Looking at things in the scene tab seems to indicate the sprite is being pushed out of the camera frustrum. But I'm not sure whats moving it in the z. Even disabled the anchor script.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Resizing unity Game tab window shows/hides NGUI
« Reply #5 on: April 12, 2014, 04:37:49 AM »
Yeah that's absurdly out of date, and there isn't much I can do to help with something that old.