Raycaster does not work as intended. It ignores the button unless you hit it with the correct angle and that angle is when the ray doesn't hit a wall behind (i.e. aim for the sky to hit buttons).
Disable the box collider and the ray hits the button as intended from all angles,
Raycaster does not work as intended. It ignores the button unless you hit it with the correct angle and that angle is when the ray doesn't hit a wall behind (i.e. aim for the sky to hit buttons). Disable the box collider and the ray hits the button as intended from all angles,
Fix the priority of the raycaster.