Search Issue Tracker
Not Reproducible
Votes
0
Found in
2018.4
2019.4
2020.3
2020.3.13f1
2021.1
2021.2
2022.1
Issue ID
1349784
Regression
No
Overlap is detected in LayerMask.GetMask when Collision is turned of between objects in Layer Collison Matrix
How to reproduce:
1. Open the attached project "LayerMask.zip"
2. Open Assets/Scenes/SampleScene.unity
3. Enter Play Mode
4. Press W
Expected result: "Obj1" jumps
Actual result: "Obj1" does not jump
Reproducible with: 2018.4.36f1, 2019.4.29f1, 2020.3.14f1, 2021.1.15f1, 2021.2.0b4, 2022.1.0a2
Notes: Remove "Obj2" from "LayerMask.GetMask" at line 21 in "Obj1Controller.cs" for jumping to work
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
- An image bleeds out of the borders of a Mask when the project is opened with the iOS Build Support module
- Shadows do not appear on the Material with a custom shader which uses screen space shadow map in HDRP when Ray Traced Shadows are enabled
- An emoji is not shown in the UI Builder Viewport and the Game view when it is placed in the Labels text attribute and Usage Hints is set to Dynamic Color
- The Sprite Renderers are looking for Secondary Textures from the wrong page within the Sprite Atlas when the Sprite Atlas has a large amount of textures for packing
- [URP] Invalid update of shader stripping settings
Resolution Note:
Not Reproducible, because queries allow you to specify the layer-mask either explicitly or via the ContactFilter2D, therefore, they cannot use both that AND the LayerCollisionMatrix. The LayerCollisionMatrix is used by the (2D or 3D) physics engines. User queries allow you to specify either the same or something completely different.