Search Issue Tracker
By Design
Votes
2
Found in
2018.4
2019.4
2020.3
2020.3.3f1
2021.1
2021.2
Issue ID
1328050
Regression
No
RaycastCommand maxHits parameter does not have any effect on how many hits the Raycast returns
How to reproduce:
1. Open the attached project
2. Enable Gizmos in the Game View
3. Click Play
4. Observe Game View
Expected result: The green line goes through all cubes
Actual result: The green line stops at the first cube
Reproducible with: 2018.4.33f1, 2019.4.23f1, 2020.3.4f1, 2021.1.3f1, 2021.2.0a13
Workaround: You can recast the ray at the hit point to get the multiple hits
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
- Terrain heightmap loses precision on Android and iOS when the heightmap texture is blitted to a RenderTexture using the default Blit shader
- Tiny unscaledDeltaTimes (~1e-5 s) happen randomly in the iOS/Android Player
- UI Builder's Canvas stays blue when a Visual Element within its bounds was selected before enabling and disabling the Preview and Canvas Background is enabled
- “The main object name " should match the asset filename" warning is shown in the Inspector when creating a new Color Library
- "Assertion failed on expression: 'fidA != fidB'" error is thrown when using specific Prefabs on HDRP and URP
Resolution Note:
As stated in an identical case 1041352, this behaviour is by design. Scripting API is being updated.