Search Issue Tracker

By Design



Found in


Issue ID




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

Comments (11)

  1. Bb98e4392990b3490a59e3dcb047f75a?d=mm


    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

  2. 36c65e3934745df83910152c6a077e4a?d=mm


    Aug 18, 2020 05:49

    good one <a href="">lyricsauto</a>

  3. 36f8308630a43a2cd3f1617268227771?d=mm


    May 23, 2020 09:10

    I dint knew the way to do this and have searched it a hundred times online but still I was unable to find this. Mostly students visit website for help in essays online. Thank you for sharing this. I’ve followed the procedure that you’ve told and I was able to accomplish my task.

  4. 9c906b2d99cc21c5305fae3a0662e33a?d=mm


    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?

  5. 56b57f5db3548b611c5d47d815e50c8f?d=mm


    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.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.

  6. 9df1ef4fe1122536a4d416062c52100a?d=mm


    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.

  7. 9df1ef4fe1122536a4d416062c52100a?d=mm


    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.

  8. F5fefff2c6138bf15f1aff454a2a512b?d=mm


    Jun 16, 2016 22:52

    Still. 5.4.0b21.

  9. Fb662847fa597d743d055f9fdbe1f037?d=mm


    Jun 06, 2016 09:16

    Still. 5.3.5p2.

  10. 4d227c55d9f06e31bbf23bc993b7fc33?d=mm


    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.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.