Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Button not highlighting when inputmodule executes a pointerEnterHandler even on it.

Discussion in 'UGUI & TextMesh Pro' started by quitebuttery, Aug 28, 2014.

  1. quitebuttery


    Mar 12, 2011
    So I'm using my custom input module code for world space cursors on uGUI with oculus rift, as documented here:

    But for some reason, some buttons will not highlight when I execute pointerEnterHandler on it (in the SetTargetObject method). It's weird though because I can click them and that animation works, but it's the highlight state that never animates. Each button is identically configured so I can't figure out why. Is there some way to debug event execution so I can see why pointerenterhandler isn't being called on some of my buttons?