Author Topic: The HighLight GameObject lifetime  (Read 2109 times)

shokinhan

  • Guest
The HighLight GameObject lifetime
« on: June 14, 2013, 10:04:44 AM »
If the UICamera highlight the gameobject "A", then the mouse above the gameobject, it may be trigger "OnHover".

But if gameobect "A" was destroyed, another module don't know the event "OnHover" has be changed invliad !  Truely , I want to know exit the event "OnHover"!
 
How to reslove this probleam?





ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: The HighLight GameObject lifetime
« Reply #1 on: June 14, 2013, 05:05:26 PM »
What? Hover events are handled by UICamera.Highlight function, and don't trigger if the script is null.

shokinhan

  • Guest
Re: The HighLight GameObject lifetime
« Reply #2 on: June 15, 2013, 02:18:33 AM »
Thanks!1