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

Code works on PC not on Android

Discussion in 'Scripting' started by MG, Aug 2, 2015.

  1. MG

    MG

    Joined:
    Nov 10, 2012
    Posts:
    190
    fail post
     
    Last edited: Aug 2, 2015
  2. Korno

    Korno

    Joined:
    Oct 26, 2014
    Posts:
    518
    Is OnMouseDown called on a touch event? Remember that is a mouse click. It might still be called for a touch event, but check the documents. Does it work when you only touch with one finger not two fingers?
     
  3. MG

    MG

    Joined:
    Nov 10, 2012
    Posts:
    190
    I have no idea what touch event is, Korno
     
  4. MG

    MG

    Joined:
    Nov 10, 2012
    Posts:
    190
    I really dont understand why the code doesn't work
     
  5. MG

    MG

    Joined:
    Nov 10, 2012
    Posts:
    190
    why cant i use OnMouseDown, for android?