Hi
I’m working on a Unity project for Android that features an interactive world map. Upon selecting a country, a panel with additional details overlays the map. I’m running into an issue with click events.
Problem: When I click on the overlay panel, the underlying country is unintentionally selected, indicating that the click is being captured by the country’s collider before reaching the panel.
Attempts:
- I’ve experimented with various solutions, including adjusting the hierarchy, experimenting with different collider types, and modifying click detection scripts.
Goal:
- I aim to ensure that clicks on the overlay panel take precedence over any underlying elements.
- The panel should be the sole recipient of clicks when it overlaps other UI elements.
- “I’m trying to create a non-interactive overlay panel that doesn’t trigger events when clicked.”
- “I need to prevent the panel from capturing click events that should be ignored.”
I’ve already tried adjusting the hierarchy, colliders, Event System, click detection scripts, Canvas Group, and Graphic Raycaster, but I haven’t found a solution.
I’m at a loss for what to try next. Any suggestions or insights would be greatly appreciated.