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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution 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.