So I haven’t been able to use Unity 2019 because of one issue. I even sent this in as a bug a few months ago with no response from Unity.
After I upgraded If I click a Image Panel it will detect clicks behind it. Did this behavior change or something?
Its always been in the past if you have a image with raycast target set to true. It wouldn’t detect clicks behind it.
So in the image below. If i click one of these buildings in this window it will interact with the map behind it.
Hello ! What was the solution for you ? I face the same issue from upgrading to 2018 to 2019.
EDIT : After some research here’s my problem :
Say we have a UI -A-, with a Canvas and a Graphic Raycaster. Canvas sorting order is 0.
We have a UI -B-, with a Canvas and Graphic Raycaster. Canvas sorting order is also 0.
-B- is below -A- in the hierarchy, so -B- is display in front of -A-.
2018 to 2019 doesn’t change that.
However, for raycast, 2018 and 2019 behave differently.
Imagine -A- and -B- have a button at the same place on the screen (so button -A- is hidden by button -B-) :
In 2018, it clicks on -B-
In 2019, it clicks on -A-
Is there something i’m missing ? Why Canvas rendering depends on hierarchy but not graphic raycaster in 2019 ? Why does it change ? It that a bug ? Thanks !