Search Issue Tracker
Duplicate
Votes
0
Found in
2017.1.0p4
Issue ID
944699
Regression
Yes
UI Image with its x and y axis scaled to 0 doesn't pass raycast when its z scale is not scaled to 0
To reproduce:
1. Open attached Unity project "ClickTest2.zip"
2. Open "Game_0" scene
3. Go into Play Mode
4. In the Hierarchy, navigate to Canvas --> Panel --> StartPanel
5. Set x and y scale of the StartPanel object to 0
Expected result: StartPanel is scaled to 0, so the raycast should not be blocked by it and the buttons should be possible to click
Actual result: The raycast is blocked, buttons are impossible to click.
Note: Scaling the z axis to 0 fixes the issue and the raycast is no longer getting blocked
Regression first introduced in: 2017.1.0b1
Reproduced on: 2017.1.0b1, 2017.1.1f1, 2017.2.0b11, 2017.3.0a7
Not reproduced on: 5.6.3p2
Note: in versions 2017.1.0b1 - 2017.1.0b8 setting z axis scale to 0 and trying to click on a button prints an "Assertion failed: Assertion failed on expression: 'IsNormalized(dir)' " error to console
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Rigidbody2D.Slide API does not have the needed configuration when creating a 2D Top-Down character controller
- Opening reference for "Playables"component redirects to a missing page
- Sprite Renderer image is changed when switching Mask Interaction and changing Sprite to a shared Sprite
- An unsigned integer is not compared with an integer correctly in player when using IL2CPP backend
- Graphical artifacts are being rendered in Scenes that are loaded during run-time when GPU Resident Drawer is turned on
Add comment