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

Resolved Problem with detecting input from Touchscreen

Discussion in 'Input System' started by pareylook, Oct 30, 2021.

  1. pareylook

    pareylook

    Joined:
    Mar 4, 2016
    Posts:
    10
    Hello All. Could you help me with my problem? I'm trying to detect the position of "click" from a mouse and from a touchscreen by similar settings.
    I use these input settings

    Also, I'm trying to write to the console position of "click"
    Code (CSharp):
    1. DebugWrite(Touchscreen.current.position.ReadValue());
    And it's doesn't work. But it works if I use a mouse click.
    I'm checking it with Unity Remote on my phone
     
  2. dmytro_at_unity

    dmytro_at_unity

    Unity Technologies

    Joined:
    Feb 12, 2021
    Posts:
    212
    Unity Remote is currently not supported, but try enabling Window -> Analysis -> Input Debugger -> Options -> Simulate touch from mouse and pen
     
    pareylook likes this.
  3. pareylook

    pareylook

    Joined:
    Mar 4, 2016
    Posts:
    10
    Yes, Thank you. When I made the build on phone I realized that Input works.