Hi, I have a very simple question. Can you use Rect.Contains
to reference an area on a touch screen? If so, how would you reference that area? Looking at the code below, what should be in the Input.mousePosition
section of the code?
function Update () {
var rect = Rect (0, 0, 150, 150);
if (rect.Contains(Input.mousePosition))
print("Inside");
}
Thanks for your insight and knowledge on this.