I'm working on a project where I have a main UI (Screen Space - Overlay canvas) and various game objects that have little popups above them (World Space canvas) that the player should be able to click on. Everything on the main UI works fine, but the OnPointerDown
and OnPointerUp
methods on the World Space canvases aren't firing when I click on them.
Things I've made sure to check:
- The canvases have a Graphic Raycaster
- The canvases have their Event Camera set to the scene's camera
- The Image on the canvas that's supposed to get clicked on has Raycast Target set to
true
This was all working fine in Unity 2018, but in 2019 it's not. Is this a bug, or has something changed that I just don't know about? Either way, is there any way to fix this?