Author Topic: Hover being called on mobile devices causing button problems (3.7.6)  (Read 1641 times)

dillrye

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 30
    • View Profile
Hello, I have noticed that after you click a button in 3.7.6, the hover state is being called even though there is not a mouse cursor. 

I was able to reproduce this in unity 4.6 using the "Control Widgets" demo scene with the latest code pulled from github(12/5/2014).  After you click on the button, it stays highlighted until you click elsewhere in the scene.


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Hover being called on mobile devices causing button problems (3.7.6)
« Reply #1 on: December 05, 2014, 04:09:29 PM »
You need to turn off mouse events on the UICamera. Unity sends both touch and mouse from the same action.