How to make UI Toolkit overlay uGUI raycast?

OK, I’ve reloaded the same package and scene in 2021.2 and I should have used my own advice, hahah, and vary the sortingOrder.

You can fix the problem by setting the Canvas’s sorting order to -1 or by setting the PanelSettings’s sorting order to 1. Note that changing the UIDocument’s sorting order will have no effect. Also note that the sorting order ambiguity bug is resolved on the latest Unity, but thank you for reminding me that we should backport it!

8839801–1204375–ugui-uitk-input-forum-question-2012.2.unitypackage (1.27 MB)