Author Topic: On Drag Over  (Read 5444 times)

Slyfox

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 12
    • View Profile
On Drag Over
« on: October 17, 2013, 05:47:00 AM »
Hi, I would like to be able to create an event when dragging over a button.
I tried to add the OnHover event, but it isn't called when dragging.
Without dragging anything the OnHover event does work.

PS: also, something unrelated. On the asset store, I tried to download the version 3.0.2 but when importing it, I see it is still version 3.0.0, is it just me?

Slyfox

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 12
    • View Profile
Re: On Drag Over
« Reply #1 on: October 17, 2013, 06:20:08 AM »
After searching a bit more, I found that making sticky press = false in the UI camera allow the OnPress to still react, so I can do what I need in the OnPress event which now react more like the OnHover when dragging.

Though I think it would be better if the OnHover still responded instead, maybe having a stickyHover option in the camera, would this be possible?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: On Drag Over
« Reply #2 on: October 18, 2013, 06:39:24 PM »
NGUI input system is pretty much set in stone by this point. Unity's upcoming UI system (and the event system that comes with it) handles this better.

Slyfox

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 12
    • View Profile
Re: On Drag Over
« Reply #3 on: October 18, 2013, 06:45:30 PM »
ok thanks.