Build Rectangle in code from two GameObjects
The image represents my game screen. In code I need to compute a rectangle which starts at the red area (x,y) and goes to the top of the blue area. I can come close but no cigar. I'm trying to determine if the area in the red is touched using Rect.Contains(touchPoint).
I'm probably way over thinking this but can't get it to work properly.
Thanks in advance
unityquestiion.png
(2.5 kB)
Comment
Your answer
Follow this Question
Related Questions
Help with cropping a part of an Image using rect. 1 Answer
What is the different between BoundsInt and RectInt? 0 Answers
RectTransform.rect.size alternating values 0 Answers
Double Clicking mouse 1 Answer