Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Hittest | Left or Right Screenside

$
0
0
I have this two rects:
Code (csharp):
  1.  
  2. LeftRect = new Rect(0, 0, Screen.width / 2, Screen.height);
  3. RightRect = new Rect(Screen.width / 2, 0, Screen.width / 2, Screen.height);
  4.  
The "LeftRect" creates an image on the left side of the screen and "RightRect" creates an image on the right side of the screen. And how can I get the information, that one of that is touched on my Android device? I don't know, how to use "Hittest".

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>