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