Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

UI Not Working With New Input System

Discussion in 'Input System' started by SecretTomodachi, Sep 12, 2020.

  1. SecretTomodachi

    SecretTomodachi

    Joined:
    Nov 24, 2019
    Posts:
    23
    Has anyone used the new Unity Input system for their UI?
    I keep getting this error
    MissingMethodException: UnityEngine.InputSystem.UI.InputSystemUIInputModule.OnPoint Due to: Attempted to access a missing member
     
  2. JCPhlux

    JCPhlux

    Joined:
    May 27, 2018
    Posts:
    17
    I am also seeing this.
     
  3. Michal_M_Cat-astrophe

    Michal_M_Cat-astrophe

    Joined:
    Jun 16, 2020
    Posts:
    1
    Ditto. The error started appearing in my project after updating the Input System to version
    1.0.0 2019.4 verified
     
  4. Rene-Damm

    Rene-Damm

    Unity Technologies

    Joined:
    Sep 15, 2012
    Posts:
    1,779
    This is most likely coming from PlayerInput and InputSystemUIInputModule sitting on the same GameObject. What I assume is what happens is that PlayerInput is set to SendMessage. So when it sees a UI action happening, it sends a message which then erroneously finds messages like OnPoint in InputSystemUIInputModule. However, those messages have incompatible signatures and thus the error (expressed as a rather misleading MissingMethodException).

    Workaround would be to either switch PlayerInput to using UnityEvents or to put the PlayerInput component on a GameObject separate from the event system.

    I'll make a note for us to have a look how to handle or at least detect this better.
     
  5. FireHawkX

    FireHawkX

    Joined:
    Apr 26, 2016
    Posts:
    28
    Is there any update on this in the past year?

    I spent the last week switching to the new PlayerInput system... finally got everything working fine...

    However, when the game is paused in the options menu, if any of the 12 "mapped" keys/buttons is pressed, i get a dozen MissingMethodException errors at once...

    I would like to avoid re-doing everything using UnityEvents instead of the currently set "Broadcast Message"...