I have a simple task - detect if mouse cursor over my UI GameObject with Image component. But...
IPointerDownHandler and others i can't use because as i understand this must be on object with image. I want to detect intersection with GameObject as container (some images inside it) Rect.Contatins from RectTransfrom also don't work becase size of RectTransform different with image size. And i don't want to set special script on each object with image to catch some callbacks.
Do you know simple way to detect intersection of mouse cursor with UI GameObject Image (no special scripts on it)?
Thanks!