Search Unity

Resolved Decals Not Working Right in Runtime

Discussion in 'Universal Render Pipeline' started by ShootYourBricks, Jul 19, 2022.

  1. ShootYourBricks

    ShootYourBricks

    Joined:
    Jun 3, 2021
    Posts:
    3
    The decal works fine in the editor and camera preview, but in runtime and in the build, the decal doesn't show till the camera is close to it and it acts really weird.
    What do I need to do?






    Decal Projector and Material

    projector.png


    Texture
    texture.png
    URP Renderer

    renderer.png
    URP Asset

    asset.png
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,058
    1. Change the scale mode on the decal projector maybe
    2. Try another method in the URP decal settings (I think it's G Buffer)
     
  3. ShootYourBricks

    ShootYourBricks

    Joined:
    Jun 3, 2021
    Posts:
    3
    Unfortunately that didn't do anything
     
  4. Jonas-Mortensen

    Jonas-Mortensen

    Unity Technologies

    Joined:
    Jan 3, 2020
    Posts:
    110
    Hey!
    Which version of Unity are you using? There is a known bug where the Decals will not render correctly if render scale is set to something other that 1. Try setting it to 1 to check if that is the issue.
     
    ShootYourBricks likes this.
  5. wwWwwwW1

    wwWwwwW1

    Joined:
    Oct 31, 2021
    Posts:
    769
    Maybe try changing the (URP Asset) render scale from 1.5 to 1.
     
    ShootYourBricks likes this.
  6. ShootYourBricks

    ShootYourBricks

    Joined:
    Jun 3, 2021
    Posts:
    3
    Yep, that was it!
     
    BPRICE and DevDunk like this.
  7. BPRICE

    BPRICE

    Joined:
    Mar 1, 2020
    Posts:
    8
    Worked for me too! Thanks!!!
     
  8. sahandsaedi66

    sahandsaedi66

    Joined:
    Dec 21, 2023
    Posts:
    3