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

How to get mouse position??

Discussion in 'Input System' started by illinar, Mar 7, 2019.

  1. illinar

    illinar

    Joined:
    Apr 6, 2011
    Posts:
    857
    upload_2019-3-7_11-41-40.png

    upload_2019-3-7_11-43-47.png

    upload_2019-3-7_11-42-52.png

    Always logs (0.0, 0.0)

    What am I doing wrong?
     
  2. Rene-Damm

    Rene-Damm

    Unity Technologies

    Joined:
    Sep 15, 2012
    Posts:
    1,779
    Sorry for the lag here...

    What platform?

    Also, does it behave differently if you remove the Touchscreen bindings and only have the mouse bindings?

    The setup you show should work but since 0.2-preview, we have cases where the disambiguation logic meant to deal with multiple controls feeding into the same action at the same time is throwing hissy fits and end up locking inputs to nothing. It's being looked at.
     
  3. illinar

    illinar

    Joined:
    Apr 6, 2011
    Posts:
    857
    Thanks for the reply.

    Mouse position on PC, or touch position on mobile. The only reason I am using the new input system is to have a multiplatform input and to only care about actions. But I just tried removing touch, still nothing happens, but currently, I'm not sure if anything is still in place for it to work since I moved to the old input system.

    upload_2019-3-14_18-41-33.png