Search Issue Tracker
Not Reproducible
Votes
1
Found in
4.6.1p5
Issue ID
667610
Regression
Yes
Raycasters sorting doesn't match Canvas sorting
uGUI: Raycasters sorting doesn't match Canvas sorting (4.6.1p5)
- PROBLEM
When you have 2 Canvas with 'Screen Space - Overlay' render mode on same scene, set 'Sort Order' of one of the canvas to '-1' and leave the other as is ('0'). Now the canvas with sort order '-1' is visually displayed behind other canvas, but is the first one to receive clicks. Issue appears since version 4.6.1p2 of uGUI ( https://bitbucket.org/Unity-Technologies/ui/commits/7ac0f0d81f26c75250053db863a1b63bcf10c4bd?at=4.6 ) commit #7ac0f0d81f26c75250053db863a1b63bcf10c4bd , where EventSystem.RaycastComparer logic has been changed.
I assume that problem comes from the base value of sortOrderPriority and renderOrderPriority in BaseRaycaster. They should also be changed to int.MinValue (because lower value has higher priority).
- REPRODUCTION
Launch provided sample project and click on highlighted area.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- SIGSEGV error when adding EditorApplication.delayCall callback declared in complex generic type and exiting Unity in `Performanc
- Resize cursor does not appear while approaching window edge from inside the player window when using Input System as the Input Handler
- IMGUI Debugger Instructions are flickering when the Inspected View is set to Scene and mouse cursor is moved over the Scene View
- [Windows] “GUI Window tried to begin rendering while something else had not finished rendering!…” Error is thrown after opening “Insert a template into current VFX Asset” window
- No InvalidOperationException error thrown when Active Input Handling is set to "Input System package" and "OnMouseDown()" is triggered
Add comment