Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Disastercake on July 11, 2012, 08:06:46 PM

Title: UIDrag Panel Contents triggering OnMouseEnter and OnToolitps when it shouldn't
Post by: Disastercake on July 11, 2012, 08:06:46 PM
I have a script attached to each UIDrag Panel Contents because they each represent a separate item.  However, just putting my cursor into my game window triggers an OnMouseenter and OnTrigger event to occur, even if my mouse is no where near the draggable contents.

Any idea why this could be happening?
Title: Re: UIDrag Panel Contents triggering OnMouseEnter and OnToolitps when it shouldn't
Post by: ArenMook on July 12, 2012, 01:28:48 AM
OnMouseEnter is a Unity event that's triggered on any collider. OnTrigger is also a Unity event that's triggered when your colliders intersect. Go to your physics properties and make sure that the UI layer doesn't collide with anything.