Author Topic: Confusing about NGUI event  (Read 4568 times)

bobobo

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Confusing about NGUI event
« on: July 18, 2016, 02:36:51 AM »
I'm using NGUI3.6.0
There is a sumery about the event In UICamera.cs file, which said:

--OnHover (isOver) is sent when the mouse hovers over a collider or moves away.
--OnSelect (selected) is sent when a mouse button is released on the same object as it was pressed on.

However, when I Click on a gameObject, I got the following events:
-OnHover true (hover in)
-OnPress true (push down)
-OnSelect true (push down, not release yet. But I think OnSelect should be called after "OnPress false")
-OnPress false (release)
-OnHover true (release, why there is a OnHover called?)
-OnClick
-OnHover (hover out)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Confusing about NGUI event
« Reply #1 on: July 20, 2016, 03:08:04 AM »
I don't know, you have a really old version of NGUI. I can't support such an old version.