Hello!
Here my setup:
I have 2 scenes A and B.
Scene A contains a main camera and a camera for UI stacked on the main camera.
Scene B contains another camera for UI (same settings as the first UI camera), also stacked on the main camera of scene A.
Both scenes contain a canvas using their respective UI camera (respectively named canvas A and canvas B). Canvas A use a lower layer & order in layer than the canvas B.
What I observe is:
I can click through the canvas B on buttons of the canvas A (even if there is a background image in canvas B that should block it) this behaves the same as if the canvas A was above the canvas B in term of layer. canvas B is always displayed above canvas A because of camera stacking, but the order in layer should make the click properly reach only the UI components of canvas B.
In editor, if I move the canvas B into scene A and change it to use the UI camera A, then the behavior become correct: I cannot click on buttons from canvas A anymore.
I really feel this is a bug, related to camera stacking or just the fact that I use 2 cameras for UI. Any thoughts on this ?
PS: I experienced this with Unity 2021 LTS and 2022 LTS)