Author Topic: Problem with draggable panels erasing other panels.  (Read 2998 times)

Dande

  • Guest
Problem with draggable panels erasing other panels.
« on: July 09, 2012, 07:40:40 AM »
Hi everyone,

I'm creating a game using NGUI for the interface. I used the quest log panel from "Example 9" (with the parented draggable object with drag position and drag tilt etc).

The problem is that whenever I drag this quest log panel, the rest of the panels that I previously created in the game (character sheet, inventory, tooltips, etc.) are erased. It's like my quest log panel has suddenly become an "erase" tool, just like the one you use in paint or photoshop. If any part of the quest log gets on top of any other panel, that part of the other panel will not be rendered again. I tried toggling them on and off and they still don't render the parts where the quest log has been at.

I know it's a bit of a vague description, however, does anyone know what the problem might be?

Thanks in advance.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Problem with draggable panels erasing other panels.
« Reply #1 on: July 09, 2012, 10:38:10 AM »
Check the FAQ: http://www.tasharen.com/forum/index.php?topic=6.msg238#msg238

You need to adjust depth. Different panels = different draw calls, use Z to tell Unity which is on top of which.

Also make sure your UICamera's camera has clear flags set to 'color', not just 'depth' if it's the only camera present.

Dande

  • Guest
Re: Problem with draggable panels erasing other panels.
« Reply #2 on: July 10, 2012, 01:03:47 AM »
Thank you very much, I'll check on that :)

Dande

  • Guest
Re: Problem with draggable panels erasing other panels.
« Reply #3 on: July 12, 2012, 02:03:41 AM »
I set my camera flags to "Depth only" and it has been fixed. Again, thank you very much.