Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Camera stacking problem, please help.

Discussion in 'General Graphics' started by dreartuty22, May 24, 2024.

  1. dreartuty22

    dreartuty22

    Joined:
    Feb 10, 2022
    Posts:
    3
    So in my unity hdrp 2d project I have three cameras. The default camera, which renders the game to a 2d render texture, that render texture being used for a material which has a stylized shader and that material being applied to a raw image on a canvas that is rendered by a camera which also renders the rest of the ui and buttons. The third camera is supposed to render certain world space UI elements like in level text and so on, and I made this camera to be a overlay texture and render on top of the camera which renders the UI and the stylized view of the game. I don't know why this overlay UI isn't visible.
    I think the problem is the UI overlay renders under the raw image, because the canvas with the ui elements and the raw image is set to camera-overlay. I think this is the problem. How can I make the world UI elements render on top of the raw image.
     
  2. warthos3399

    warthos3399

    Joined:
    May 11, 2019
    Posts:
    1,789
    HDRP doesnt support camera stacking, if you use more than 1 camera, your performance is going to tank...