Search Issue Tracker
Fixed in 2020.1.X
Votes
1
Found in
2018.4
2019.2
2019.2.0f1
2019.3
2020.1
Issue ID
1198442
Regression
No
RaycastResult.sortingLayer always returns the default Layer when Raycast hits a GameObject with a Tilemap Renderer
How to reproduce:
1. Open the user-submitted project "RaycastHit.sortingLayer.zip"
2. Open the SampleScene
3. Enter Play mode
4. Click on the Tilemap GameObject
Expected result: "My Sorting Layer" is printed as RaycastResult.sortingLayer
Actual result: "Default" is printed as RaycastResult.sortingLayer
Reproducible with: 2018.4.13f1, 2019.2.14f1, 2019.3.0b12, 2020.1.0a14
Notes:
Could not test on Unity 2017.4, due to a fatal error being thrown when opening the project.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- MissingReferenceException errors are thrown after entering Play mode when multiple Inspector windows are displaying different objects with Grid Layout Group component
- "Can't change name, category with the same name already exists" Error is logged when renaming a Category to a name with a trailing space in the VFX Graph Blackboard
- Delete does nothing on an in-use Custom Attribute when re-triggered after cancelling the deletion confirmation prompt in the VFX Graph Blackboard
- No Ellipses are used for the Visual Effect Graph Create Context Menu Option
- Crash on LaunchBugReporter when opening a specific project using DirectX 12
Add comment