Author Topic: UIDrag Panel Contents triggering OnMouseEnter and OnToolitps when it shouldn't  (Read 3321 times)

Disastercake

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 87
  • www.disastercake.com
    • View Profile
    • Disastercake
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?
« Last Edit: July 11, 2012, 08:13:39 PM by Disastercake »
Creator of Soul Saga.
http://www.disastercake.com

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
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.