Search Issue Tracker
Fixed in 2020.2.X
Votes
0
Found in
2019.3.0a11
2019.4
2019.4.1f1
2020.1
Issue ID
1257165
Regression
Yes
Camera.ScreenToWorldPoint returns incorrect values when built in WebGL
How to reproduce:
1. Open user's attached "ProgrammingAssignment2.zip" project
2. Open "SampleScene" Scene
3. Enter Play Mode
4. Move the "Paddle" GameObject with WASD keys in the Game view so the ball would hit the side of the screen
5. Go to File -> Build Settings
6. Make sure the platform is set to WebGL
7. Press Build And Run
8. Repeat step 4 when the application is loaded in the browser
9. Observe the console in the browser
Expected result: The ball collides with the side of the screen, "Bottom Left: (-8.9, -5.0, 0.0)" is printed in the console
Actual result: The ball goes outside of the screen, "Bottom Left: (-10.0, -5.0, 0.0)" is printed in the console
Reproducible with: 2019.3.0a11, 2019.4.2f1, 2020.1.0a4
Not reproducible with: 2018.4.24f1, 2019.3.0a10, 2020.2.0a14, 2020.2.0a15
Could not test with: 2020.1.0a5 - 2020.2.0a13 ("Screen position out of view frustum (screen pos 0.000000, 0.000000, 10.000000)" error message is thrown)
Notes:
- The issue is not reproducible in the Editor and on Windows, Mac build
- Expected, Actual result values of "Bottom Left" are from building the application in 1280x720 resolution
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
- Uninitialized variable warning appears in the Inspector of a custom shader when the variable is initialized
- "Failed creating toolbar element from ID..." error is thrown when resetting the Scene view Overlay layout while an Asset Transformer Toolbox overlay is active
- Entity ID for Font Assets is serialized twice which throws an error when using Debug Inspector
- Play Mode can be entered when disabling Adaptive Performance and pressing either the Play Mode button or the keyboard shortcut to enter Play Mode before recompilation leading to errors and warnings thrown
- Parent ListView element also becomes selected when inner ListView element is selected
Resolution Note (fix version 2020.2):
Fixed in: 2020.2.0a14