Search Issue Tracker
By Design
Votes
0
Found in
2018.4
2018.4.5f1
2020.2
Issue ID
1272812
Regression
No
Currently used Camera changes randomly when drawing mesh with DrawMeshNow()
How to reproduce:
1. Open the user's attached project from "Surface Canvas.zip"
2. Enter Play Mode
3. Move your cursor around the Editor
4. Observe Console to see the Main Camera switching state
Expected result: Main Camera stays the same on all frames
Actual result: Main Camera changes randomly to Null
Reproducible with: 2018.4.27f1, 2019.4.11f1, 2020.1.6f1, 2020.2.0b3
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
- Inspector elements are rendered twice when the script component is added via drag-and-drop while the HideFlags.HideInInspector property is set
- Error "Light baking failed with error code 5 (Convergence data not available while rendering lightmaps)" thrown in Console when generating lighting for specific GameObjects
- Copy and Paste options for an Animation Property value are disabled in the Right click contextual menu
- Asset is not found when searching the Label "NewLabel" in Search Window
- "Compute dispatch: missing texture ID..." and "Compute dispatch: missing UAV ID..." warnings are thrown after changing the platform in High Definition 3D template
Resolution Note:
Camera.current should not be called from OnUpdate (see https://docs.unity3d.com/ScriptReference/Camera-current.html)