Search Issue Tracker
Won't Fix
Votes
9
Found in
2022.2.0b3
Issue ID
UUM-2718
Regression
No
"Screen position out of view frustum" error is throw when moving the mouse over the Game view with water in the Scene
How to reproduce:
1. Open user's attached "WaterBug" project
2. Open the "UI Menu" Scene
3. Move your mouse over the Game view
Expected results: No errors are thrown
Actual results: The "Screen position out of view frustum" error is spammed in the Console
Reproducible with: 2018.4.26f1, 2019.4.8f1, 2020.1.3f1, 2020.2.0a21
Notes:
- The error might not appear sometimes but changing the Editor window size will make the error start appearing
- The issue reproduces on Editor and Windows Standalone Build
- The issue does not reproduce on WebGL Build
- Opening the Build in the windowed mode can sometimes make the error stop from appearing and it will not be appearing even when launching it in non-windowed mode later
- In the Editor closing and re-opening the Game view will make the error stop appearing
- In the Water.cs script changing the line 224 (reflectionCamera.Render()) to:
if (reflectionCamera.rect.x \!= 0 && reflectionCamera.rect.y \!= 0)
\{
reflectionCamera.Render();
}
will fix the issue in both the Editor and the Build
Comments (2)
-
Kamyker
Sep 06, 2020 12:43
"reflectionCamera.rect.x != 0 && reflectionCamera.rect.y != 0" is always false
-
Kamyker
Sep 06, 2020 12:43
if (reflectionCamera.rect.x != 0 && reflectionCamera.rect.y != 0)
{
reflectionCamera.Render();
}This doesn't fix the issue but disables water completely as rect.x and rect.y is always 0
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
- The Scrollbar becomes unusable when adding Elements to the List
- "One or more data file missing for baking set NewScene Baking Set. Cannot load shared data." error in Player when a specific project is built
- Choosing new HDR Colour using RGB values breaks colour on Intensity Selectors
- Rendering/Decal Layer Mask options are different inside Prefab Mode and outside Prefab Mode when the project is upgraded to Unity 6
- Incorrect Realtime GI Light Probes baking when more than one Light Probe Group is used and "Baked Global Illumination" is enabled
Resolution Note:
No reproducible issue found on the engine side. The issue lies in the water implementation.