Search Issue Tracker
By Design
Votes
0
Found in
2017.2.0f3
Issue ID
964349
Regression
No
Ray hits any GameObject regardless of what LayerMask is passed in
Steps to reproduce:
1. Open attached project
2. Enter Play Mode
3. Move either of the three objects (cube, capsule, sphere) aligned with the black ray in front of the ray's source
Actual result: the ray hits whichever object that is closest to it (hitrayissue.mp4)
Expected result: the ray hits only the object in a corresponding Layer
Note 1: the script being used is Raycaster.
Note 2: the layer mask is set via a public variable in the script using the Inspector
Note 3: all three objects are in different layers, the one used as a Layer mask in the attached project is for Layer3
Reproducible on: 5.6.1f1, 2017.2.0f3 , 2018.1.0a3
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [CI/CD]Build cache not invalidated when building targets with different defines
- VFX Learning Templates contains an empty folder the HDRP_VFX_Learning_Templates Scene
- Crash on -[NSApplication endModalSession:] when changing code in a Code Editor, saving and clicking on the Unity Window with "Stop Playing and Recompile" selected
- “Install package from git URL” and “Install package by name” tab does not close when resizing undocked Package Manager window and gets pushed outside the window
- "EndLayoutGroup: BeginLayoutGroup must be called first." errors are thrown when creating a Tag with identical name and holding the enter keyboard button
Add comment