- Home /
Detect if UI element is visible
Hello Everyone,
I am making a minimap for my game and I ran into one issue. I am trying to add arrows around the minimap that points to the specific location, if the minimap location icon is not visible on the minimap itself. When the icon becomes visible on the minimap screen, I hide the arrow that point to the icon's location. I use Mask to hide everything that is currently outside the minimap screen.
How can I detect if the icon (UI image element) is currently visible by the mask?
Or something similar to that that could help me achieve this kind of result?
Any help is really appreciated! Thank you.
Comment