Author Topic: How to make NGUI mouse point event take priority over UGUI?  (Read 2502 times)

leegod

  • Jr. Member
  • **
  • Thank You
  • -Given: 5
  • -Receive: 0
  • Posts: 90
    • View Profile
How to make NGUI mouse point event take priority over UGUI?
« on: March 21, 2017, 01:17:20 AM »
So I have 3d map in my game scene and 3d objects on that map.

I using tooltip trigger that trigger description ugui window if I mouse over to that 3d object's collider.

Problem is, when I open NGUI UI, when I mouse over to 3d world's object, tooltip triggered Even when NGUI UI element block it so it does not shown.

How can I block input to that ugui tooltip when NGUI UI shown over it?

Thanks.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How to make NGUI mouse point event take priority over UGUI?
« Reply #1 on: March 21, 2017, 04:25:53 PM »
Why are you mixing two different UI systems? Stick with one. NGUI event handling has nothing to do with UGUI. You can't mix them, and you can't block one from the other.

leegod

  • Jr. Member
  • **
  • Thank You
  • -Given: 5
  • -Receive: 0
  • Posts: 90
    • View Profile
Re: How to make NGUI mouse point event take priority over UGUI?
« Reply #2 on: March 24, 2017, 03:41:25 AM »
Why are you mixing two different UI systems? Stick with one. NGUI event handling has nothing to do with UGUI. You can't mix them, and you can't block one from the other.

Because current project has ngui made UI system at 2015. At that time, there was no UGUI.

And ugui still doesn't support drag & drop.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How to make NGUI mouse point event take priority over UGUI?
« Reply #3 on: March 26, 2017, 07:46:30 AM »
So just stick to NGUI :)

Unfortunately there is no way for NGUI to prevent UGUI events from happening, and vice versa.

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: How to make NGUI mouse point event take priority over UGUI?
« Reply #4 on: April 04, 2017, 03:08:45 PM »
It's outside the scope of this forum, really, but what you would do is make the unity ui that's supposed to be "under" ngui have a blocking invisible sprite. Tis tricksy though, and mixing UI systems is a recipe for lots of headaches.