- Home /
The question is answered, right answer was accepted
Mask on UI touch C#
Hi, I would like to use mask with touch system and UI system. I thought if I put an mask I will not be able touch over mask image. Now I'm moving on red square area with function:
button.position = Input.GetTouch(0).position; but I'm should be able to touch only on yellow circle or green shape.
I'm using unity 5.1.1f1 version.
Answer by Kamil1064 · Sep 30, 2015 at 10:22 AM
Nevermind, solved.
Even if you solved the problem by yourself, you should explain why so that people finding this post can solve their own problems too.
Good point, I used 2d colliders on UI elements.
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
How do I get which UI conponent is being touched? 0 Answers
Character Controller with Unity User Iterface input 1 Answer
Create UI Mask from Childrens images 2 Answers