Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Help Wanted Input System UI Input Module - UI Button does not respond to click/hover

Discussion in 'Input System' started by tanayg, Jul 20, 2020.

  1. tanayg

    tanayg

    Joined:
    Jul 20, 2020
    Posts:
    4
    Hi,

    I'm trying to get my button to respond to click/hover events with the new Input System. I have an empty object with a script containing a function which logs a message when called. This function is mapped to onClick() of a UI button.

    My empty object also contains the Input System UI Input Module component, along with an Event System component which gets automatically added with it.

    Images showing my setup are attached:

    upload_2020-7-20_22-39-22.png upload_2020-7-20_22-39-36.png upload_2020-7-20_22-40-5.png
    Any help regarding this is very much appreciated.

    Thanks!
     
    reinfeldx likes this.
  2. reinfeldx

    reinfeldx

    Joined:
    Nov 23, 2013
    Posts:
    117
    I'm having the same problem. I've been searching for hours and trying all the usual interactable-UI debugging, but I'm starting to think it's the New Input System that's the problem. I have another separate project that uses the old input system and it's working fine.

    Did you come up with a fix for this?
     
unityunity