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. Unity 2022.2 is now available as the latest Tech release.
    Dismiss Notice
  3. We are making some changes to the DOTS forums.
    Dismiss Notice
  4. Join us on Dec 8, 2022, between 7 am & 7 pm EST, in the DOTS Dev Blitz Day 2022 - Q&A forum, Discord, and Unity3D Subreddit to learn more about DOTS directly from the Unity Developers.
    Dismiss Notice
  5. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Input.simulateMouseWithTouches is ignored in WebGL

Discussion in 'WebGL' started by petrucio, Feb 25, 2016.

  1. petrucio


    Aug 30, 2011
    I know WebGL is not officially supported on mobile devices, but this will also raise problems on ultra books with touch. Since this already works for other mobile platforms, it's expected to have the same functionality everywhere - at the very least we should be getting a warning when setting this.

    My solution was to use Raycasting on touches to send OnMouse events to objects that are expecting them, and change all Input.GetMouse*() calls to my own GetInput*() calls that check touches as well as mouse. But those should not be necessary, specially since multi-platform without too much special casing is supposed to be Unity's big thing.
  2. jonas-echterhoff


    Unity Technologies

    Aug 18, 2005
    Could you file a bug with a simple test case? Then we will not forget about this and take a look at fixing this (should not be too difficult).
  3. sevensails


    Aug 22, 2013
    Well... It's one year later and this wasn't still solved.

    Any alternative to solve this easly?
  4. Logic_Bomb


    Apr 6, 2017