Search Unity

No More OnMouse Events?

Discussion in 'Input System' started by Deleted User, Oct 25, 2019.

  1. Deleted User

    Deleted User

    Guest

    I noticed using the new input system the OnMouse events in mono behavior are not working.

    Is this gonna be support in some way? Seems overkill to setup Raycasts for what I want. Where as OnMouse Events it was simple.
     
  2. Rene-Damm

    Rene-Damm

    Joined:
    Sep 15, 2012
    Posts:
    1,779
    There's still things the old system can do that the new system can't. MonoBehaviour mouse events is one such thing we haven't looked at yet. It'll happen as part of moving towards deprecation of the old system.

    Unsure at this point where this will fall exactly. One thing I could imagine is we simply implement this entirely in C# as a component you can add to your scene and which then will add support for those legacy-style mouse events to the scene. Something like that.
     
    SomeGuy22 likes this.