Search Issue Tracker
By Design
Votes
0
Found in
5.4.0b5
Issue ID
769410
Regression
No
Using Raycast Layermask set from LayerMask.value returns no hits (even when there should be)
No matter the LayerMask.value the Raycast never hits anything. In the project we have several raycasts. One of them has a LayerMask set to everything, another one set to Nothing. They correctly return -1 and 0 as their integer representations.
To reproduce:
1. Open attached project
2. Open 1.unity scene
3. Enter play mode
4. Click on the cube on the screen
Expected result: Console prints two hits. No mask, and one of the masks.
Actual result: Console prints just one hit (where no mask is used).
Note: Putting the values directly (0 or -1) return no hits either. While other values return hits (like 64)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on when D3D12RenderPass::SetupDeviceResources when opening FBX animation preview
- Serialization errors are thrown when "com.unity.render-pipelines.core" is added as a custom package and Graphics window is opened
- Character Joints unexpectedly rotate when a ragdoll is created using the Ragdoll Wizard
- Crash on GfxDeviceD3D11Base::DrawBuffersBatchMode when rendering the Scene view
- The shared EditorBuildSettings.asset file of symlinked projects is not updated when changing the order of the Scenes in Build Settings in one of the projects
Add comment