Author Topic: UIDraggablePanel breaking after a few seconds.  (Read 5309 times)

EHV

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
UIDraggablePanel breaking after a few seconds.
« on: February 03, 2014, 03:44:32 PM »
Hello everyone,

I'm having an odd bug with the Draggable Panel contents rendering outside of the panel. What's weird is that the draggable panel works when I first switched to that UI. But if I wait a few seconds and try to scroll again, the clipping breaks.

I am unable to attach a screen shot of our game. From the looks of it, it seems it is no longer clearing the buffer and no longer writing to it. The contents that were originally off of the rendering portion of the panel are no longer rendering anything when dragged. The contents that were rendering are being dragged throughout the screen, not being clipped at all.

The sprites are using the correct shader, otherwise it wouldn't work at all. I can only recreate this bug on IOS devices. The prefab doesn't have any weird scaling either.

I am using NGUI Version 2.2.6c with Unity 4.3.1f1.

Any help at all would be greatly appreciated. Thank you.

Yukichu

  • Full Member
  • ***
  • Thank You
  • -Given: 3
  • -Receive: 8
  • Posts: 101
    • View Profile
Re: UIDraggablePanel breaking after a few seconds.
« Reply #1 on: February 03, 2014, 10:34:17 PM »
Upgrade to 3.something or other.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIDraggablePanel breaking after a few seconds.
« Reply #2 on: February 04, 2014, 02:46:24 AM »
NGUI 2 was stopped being supported a while ago. NGUI 2.2.6 is something like a year and a half old.

EHV

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Re: UIDraggablePanel breaking after a few seconds.
« Reply #3 on: February 04, 2014, 10:48:50 AM »
The problem with that is the game is live. I only have a few days to fix as many bugs as I can. I'm worried that upgrading NGUI will cause more problems than fix. We already made a very full UI scene and upgrading that seems like it would take a lot of work. More work than we have time for.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIDraggablePanel breaking after a few seconds.
« Reply #4 on: February 05, 2014, 04:33:08 PM »
Well, without you staying up to date with NGUI versions throughout the development of the game, or you having Professional level repository access, there isn't much I can suggest at this point. Pro license in particular are extremely useful in this situation as you get complete history of every single revision, and can easily check what changed with every particular file, and see if any of the change notes actually address your particular issue. If they do, then applying the changes to your local version is a matter of looking at what changed.

EHV

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Re: UIDraggablePanel breaking after a few seconds.
« Reply #5 on: February 10, 2014, 12:09:32 PM »
For anyone interested in this issue. It turns out it wasn't a bug within NGUI but Unity. We have a metrics manager that would gather metrics on material and texture data currently active within the scene every minute. After we removed this, we stopped seeing the problem with the draggable panel boxes. Before that I did try to use a newer version of NGUI and that didn't solve the problem. This tells us that there is something off about investigating materials and textures during run time.