Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Touches don’t invoke OnDrag when CursorLockMode.Locked on all Windows devices.

Discussion in 'Windows' started by 2FlyDreams, Apr 8, 2017.

  1. 2FlyDreams

    2FlyDreams

    Joined:
    Oct 18, 2013
    Posts:
    42
    Attached the package that contains one scene and one script.

    1. Build and Run on any Windows device, where touch input is supported;

    2. Swipe your finger across the red area, OnDrag is working ("Drag" text will appear);

    3. Set CursorLockMode.Locked by turning toggle on (white area, under the “CURSOR LOCK” label);

    4. Swipe your finger across the red area, OnDrag is not working ("Drag" text will not appear).


    Tested on Windows Phone 8.1 and Windows Mobile 10.
     

    Attached Files: