Search Issue Tracker
By Design
Votes
22
Found in
5.3.1p1
Issue ID
758542
Regression
No
RenderTextures do not include Canvas (UI) elements
How to reproduce:
1. Open the attached project
2. Open and play Main scene
3. Notice that where was white screen, screenshot appeared
4. Screenshot (which is done using RenderTexture) should include "MushroomCloud" (UI element), not only the sphere underneath
Happens when Canvas render mode set to Screen Space - Overlay. Screen Space - Camera can be be used instead as a workaround.
By Design: Screen Space-Overlay shouldn't show in render textures at the moment
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
- Mouse inputs cannot be inputted when searching the Shortcuts Menu by type "Shortcut"
- "Debug Assertion Failed!" error when launching Windows Dedicated Server Player with Script Debugging enabled
- [Cinematic Studio][3D HDRP] Shader warnings thrown in the Console window when creating a new project with Cinematic Studio template
- Autoplay is triggered on Audio Assets when changing Asset Bundle tags
- Inspector Asset Bundle section has no indication for Variants, AssetBundle is written without a space, and Variant dropdown menu is available without setting the Asset Bundle first
SunnyChow
Apr 08, 2021 02:42
I ,as a normie, also like to have DoF and motion blur on my ui element, which doesn't actually need DoF and motion blur
shubhamswaraj2021
Aug 18, 2020 05:49
good one <a href="https://www.lyricsauto.com">lyricsauto</a>
Davonafe
Nov 01, 2017 15:20
So since this is By Design, then what are some methods for us to handle creating UI That Fills the Camera Space But Also shows above everything else?
Shy_
Dec 16, 2016 06:03
Had to do this by manually rendering the UI camera to a RenderTexture with an equivalent of the following code:
m_UICamera.renderTexture = m_RenderTexture;
m_UICamera.Render();
m_UICamera.RenderTexture = null;
For our implementation - periodically taking a snapshot of the UI to be mapped to an object in the scene, this works. But really this should be easier to do than it currently is, and this method would be pretty horrible for continuous rendering. Use at your own risk.
fschneider
Aug 26, 2016 08:10
I have noticed these oddities in the Editor, too, but on my build platforms (Android + iOS) everything worked just fine.
fschneider
Aug 26, 2016 08:09
I have noticed these oddities in the Editor, too, but on my build platforms (Android + iOS) everything worked just fine.
xbdb
Jun 16, 2016 22:52
Still. 5.4.0b21.
pooffick
Jun 06, 2016 09:16
Still. 5.3.5p2.
z000z
May 31, 2016 15:29
Without fixing this there doesn't appear to be any way to render the UI both to the screen and to a render texture, since setting the canvas to Screen Space - Camera (for the render texture camera) makes the UI only visible on the render texture.
Thavron
Mar 10, 2016 15:45
Still an issue with 5.3.3
Setting the canvas to "world space" works, but not when set to "screen space - overlay or camera".