Search Issue Tracker
By Design
Votes
0
Found in
2017.4.3f1
2018.2.6f1
Issue ID
1082109
Regression
Yes
Incorrect distance is returned when using EventSystem.RaycastAll
To reproduce:
1. Open project
2. Play 'TestScene'
3. Open console
4. Notice that raycast distance is 0.8 when the expected distance is 1.1
Reproduced: 2017.4.3f1, 2017.4.11f1, 2018.1.9f2, 2018.2.8f1, 2018.3.0b1
Not reproducible: 2017.3.2f1, 2017.4.2f2
BY DESIGN: the distance is calculated from the near clipping plane of the camera and not the camera object. This provides a more correct calculation based on the frustum of the camera. It is expected that the distance will be the distance to object from camera minus the distance for the near clipping plane.
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
- NullReferenceException when setting 'isTextObjectScaleStatic' to false on a disabled TextMeshPro GameObject
- Shader Stripping Custom Options disappear when exiting Play mode without reloading Domain
- Decals do not get projected when 'Rendering Layer Mask' on a GameObject is 23rd Layer or above due to encoding/decoding issues
- Deriving from SearchContextAttribute doesn't always work
- Scripting API documentation is missing for macOS editor extensions
Resolution Note (2018.3.X):
the distance is calculated from the near clipping plane of the camera and not the camera object. This provides a more correct calculation based on the frustum of the camera. It is expected that the distance will be the distance to object from camera minus the distance for the near clipping plane