Search Issue Tracker
Won't Fix
Votes
0
Found in
2018.4
2019.3.8f1
2019.4
2020.1
2020.2
Issue ID
1267847
Regression
No
UI Module doesn't render Canvases when the Camera in the Scene doesn't have the MainCamera tag
How to reproduce:
1. Open the attached "1267847 repro" project
2. Open the "Without MainCamera" Scene
3. Enter Play Mode
4. Open the Profiler window from Window > Analysis > Profiler
5. Select the UI Module
6. Select the "Canvas" Object from the list in the Module details pane
Expected results: the Canvas is shown in the preview
Actual results: the preview is empty, not even the default background is rendered
Reproducible with: 2018.4.26f1, 2019.4.8f1, 2020.1.3f1, 2020.2.0a20
Notes:
-This issue doesn't reproduce with Screen Space - Camera Canvases which reference the Camera (without the MainCamera tag)
-This issue does reproduce with Screen Space - Camera Canvases which don't have a reference the Camera (without the MainCamera tag)
-The issue never reproduces if the Camera rendering the Canvas has the MainCamera tag
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
- Skinned Mesh Renderer with multiple Animator Components does not render when "Optimize Game Objects" is enabled
- [iOS]Certain characters are not displayed when using iOS devices with 18 OS and newer
- Trees do not render in 'Unity Terrain - URP Demo Scene'
- Silent crash when clicking in Scene View in a specific project
- The Player renders black on a Quest headset when MSAA, Post Processing, and Spacewarm depth submission are enabled
Resolution Note:
We need a camera to render the objects to a preview, If none is specified we look for the "Main Camera" We dont want to create a camera for the purpose.