Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Problems with rendertexture using Raw Image

Discussion in 'Editor & General Support' started by HonoraryBob, Oct 20, 2019.

  1. HonoraryBob

    HonoraryBob

    Joined:
    May 26, 2011
    Posts:
    1,214
    I need to display a rendertexture with a UI element, which only works using Raw Image (rather than the usual image); but if the camera has certain postprocessing effects (especially Depth Of Field) the texture is displayed as partly transparent by Raw Image even though it's opaque in in the inspector. The only workaround I've come up with is to make a custom version of one of the UI shaders so that opaque rendering is used; but is there another workaround for this?