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
- Any small change in UI Builder Inspector refreshes Editor Inspector
- Inaccurate Box Collider boundaries on a rotated child Cube when the parent GameObject Scale is non-uniform
- [Android] "SHADOWS_SCREEN" set as shader Keyword when no "_ShadowMapTexture" is bound leads to freeze on a build on some Mali GPU devices
- The global scene list is overridden in a project built with command line when the Override Global Scene List setting is disabled in the build profile
- [Linux] AutoLocale log is logged when opening a project
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.