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

mouse drag on screen , not on object or player sprite

Discussion in '2D' started by yariangames2016, Oct 23, 2016.

  1. yariangames2016

    yariangames2016

    Joined:
    Sep 29, 2016
    Posts:
    78
    hi , how i can drag mouse all over screen , but not on any gui or player sprite so that , the player move upwards in Y axis whenever mousedrag is to upwards and vice versa?thanks .
     
  2. piggybank1974

    piggybank1974

    Joined:
    Dec 15, 2015
    Posts:
    621
    See the 2d game tutorial for this on the website