Search Issue Tracker
In Progress
Fixed in 6000.2.0b2
Fix In Review for 6000.0.50f1, 6000.1.5f1
Votes
0
Found in
6000.0.47f1
6000.1.0b15
6000.2.0a9
Issue ID
UUM-103933
Regression
No
The LayerMask parameter is ignored when using Physics2D.GetRayIntersection method
How to reproduce:
1. Open the attached “IN-99321” project
2. Open the “SampleScene“
3. Enter Play mode
4. Hover the mouse over the “Triangle“ GameObject
5. Press the Spacebar on the keyboard
6. Hover the mouse over the “Circle“ GameObject
7. Press the Spacebar on the keyboard
8. Observe the results in the Console window
Expected result: The Raycast detects only the “Triangle“ GameObject with the “UI“ layer
Actual result: The Raycast detects both the “Triangle“ and “Circle“ GameObjects with different layers set
Reproducible with: 2023.1.0a19, 6000.0.47f1, 6000.1.0b15, 6000.2.0a9
Couldn’t test with: 2022.3.61f1, 2023.1.0a18 (GetRayIntersection method is different from newer Unity versions)
Reproducible on: MacOS 15.3 (M4), Windows 11 (by user)
Not reproducible on: No other environments tested
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Assigned font's bold/font-weight styles render using Default Font's assets when Default Font has corresponding style assets defined in TMP Settings
- "Modifying the parent of a VisualElement while it’s already being modified is not allowed" error is thrown when entering text and pressing tab in the Search window
- Mesh colliders are not updating their positions of bounds correctly
- Images are missing from the "Open the sprite editor" documentation for 6.0, 6.1 and 6.2
- The previous element in the array is modified when assigning an Asset to a new element of AssetReferenceT
Resolution Note (fix version 6000.2.0b2):
Fix for this issue is available on Unity 6000.2.0b2 and above