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
  3. Dismiss Notice

[Question]Are OnMouse, OnPointer and Onclick(UI) using the old input manager?

Discussion in 'Input System' started by Aokkii, Jan 24, 2020.

  1. Aokkii

    Aokkii

    Joined:
    Nov 3, 2013
    Posts:
    118
    does old components like UI buttons and events like OnMouseUp, Enter, Click, OnpointerUp, etc use the old input manager?


    is there gonna be a input system counterparts of these events on the future? or they already exist.?
     
  2. Rafael_CS

    Rafael_CS

    Joined:
    Sep 16, 2013
    Posts:
    163
    You can update your old StandaloneInputModule to new InputSystemUIInputModule so you can still use this events
     
  3. Rene-Damm

    Rene-Damm

    Joined:
    Sep 15, 2012
    Posts:
    1,779
    These are not currently supported by the input system. Having "Active Input Handling" set to "Both" in the player preferences should keep the callbacks working but using only the input system, the callbacks will not get triggered.

    Uncertain at this point as we're still in the process of figuring out how exactly to handle deprecation of the legacy input manager. We won't be adding support for the callbacks directly in the input system but there may be a compatibility layer that can be opted into.