Author Topic: NGUI Graphic Glitch  (Read 10991 times)

smallbit

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
NGUI Graphic Glitch
« on: September 08, 2014, 05:02:52 AM »
Hello,
In my recent project I have encounterd a weird graphical glitch (see picture below). I have 1 panel (including proper NGUI panel) on the top of the screen that I move into screen via tween position. Here is the problem, once tween finishes, the panel disappears. I mean the sprites, button is still there and I can click it. Than on some random occasions panel will appear completely deformed in some part of the screen, sometimes it goes stretched diagonally to the center of the screen (not sure if this is the same panel though). Meanwhile rest of the panels works just fine. My scene have 2 normal cameras at the moment, I am switching between them from time to time. NGUI camera is always enabled. Any ideas what can be the problem?
« Last Edit: September 08, 2014, 11:55:17 PM by smallbit »

BeShifty

  • Jr. Member
  • **
  • Thank You
  • -Given: 5
  • -Receive: 7
  • Posts: 52
    • View Profile
Re: NGUI Graphic Glitch
« Reply #1 on: September 08, 2014, 12:25:35 PM »
Check if you have Multithreaded Rendering enabled in your Android player settings, NGUI is incompatible with that option at the moment.

smallbit

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
Re: NGUI Graphic Glitch
« Reply #2 on: September 08, 2014, 09:14:47 PM »
@BeShifty Thanks man !!! that actually do the trick, what happends than If I do need multithread rendering for other parts of my game ? is there anyworkaround for that (I was thinking on not puting more than 1 panel, but I have a few scrollviews so it's going to be hard) or I'll need to move to another non NGUI solution ?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI Graphic Glitch
« Reply #3 on: September 08, 2014, 10:52:04 PM »
I've said it about a hundred times now and if you search for "multi-threaded" in this forum you'll get dozens of posts that say the same thing -- Multi-threaded rendering feature never left beta stage in Unity. It was bugged from the start, and it was never fixed. Don't use it.

It's also mentioned in the FAQ sticky post. http://www.tasharen.com/forum/index.php?topic=6.msg43929#msg43929

That said, there are some reports that Unity may have finally fixed it in 4.5.4, but I haven't tested it myself.

smallbit

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
Re: NGUI Graphic Glitch
« Reply #4 on: September 08, 2014, 10:56:08 PM »
Relax ArenMook,

The Multithreading is stable already in 4.5.3 to which I've just updated. The issue is gone there whilst having multithreading enabled.
Thanks !

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI Graphic Glitch
« Reply #5 on: September 08, 2014, 10:58:18 PM »
Good to know, thanks!