Search Unity

2D Shaders along with 3d rendering issue

Discussion in 'Universal Render Pipeline' started by Noxirus, Mar 18, 2021.

  1. Noxirus

    Noxirus

    Joined:
    Sep 18, 2019
    Posts:
    40
    Hello,

    I am currently trying to add 2d shaders to my 3d game environment (using URP). In order to use the 2d shaders I need to add a 2d renderer asset to my URPA meaning I now have 2 assets listed there, the forward renderer and the 2d renderer.

    When I default the 2d renderer all of my 3d elements lose their shape (understandable so) but the shader I am wanting to use works now. When switching the default back to my forward renderer the 3d elements regain their shape AND the 2d shader works for me.

    The issue here is, when starting the game up for the first time (after closing and opening the editor), the 2d shader will not work, in order for it to work I need to default the 2d renderer and then flip back to the forward renderer. My question is: am I missing something here? Is there a way to default the 2d renderer when the game first starts playing and flipping back to the forward?

    Thanks so much for your time.

    -Noxirus