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

Question Decal projector does not clear when changing material

Discussion in 'High Definition Render Pipeline' started by Bordeaux_Fox, Dec 10, 2019.

  1. Bordeaux_Fox

    Bordeaux_Fox

    Joined:
    Nov 14, 2018
    Posts:
    589
    Hello,

    I have a huge problem with the decal projector component in HDRP.
    When I change the material of a decal projector at runtime with a script, the decal projector keeps showing the old material and the new material. But I expect it just shows the changed material and no longer the old one.
    Do decal projectors not clear during runtime? Do they simply overdrawn their space in the texture atlas?

    For example, I have a decal projector with the texture of the word "hello". On the wall, the decal displays "hello". But now I change the material of the decal projector to a material with a texture of the word "goodbye".
    Now I have "hello" and "goodbye" on the wall, simply overlapping. But it is just one decal projector with one material. When I disable the decal projector, the word "goodbye" disappears. The word "hello" is still there and cannot be selected or deleted.

    Also when I disable the said decal projector, the texture from the OLD material will be still displayed but not the new material. Also there is no related scene object for the old decal material. It is like their is a hidden ghost copy.

    I'm using HDRP 7.1.6.

    Please see Issue Tracker Case 1205547.
     

    Attached Files:

    Last edited: Dec 14, 2019
  2. Bordeaux_Fox

    Bordeaux_Fox

    Joined:
    Nov 14, 2018
    Posts:
    589
    Anyone? This is still in the RC 2019.3.0f3.

    Please see Issue Tracker Case 1205547.
     
    Last edited: Dec 14, 2019
  3. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,136
  4. Bordeaux_Fox

    Bordeaux_Fox

    Joined:
    Nov 14, 2018
    Posts:
    589
    Will this be fixed in the final version of 2019.3? I mean otherwise you cannot really claim HDRP to be production ready, I think.

    Decal projectors had and has a really hard history in HDRP. I mean, first there was a bug caused the decal shader to be stripped from builds and now the bug with ghost copies.
     
  5. Lorca1031

    Lorca1031

    Joined:
    May 4, 2018
    Posts:
    10
    Please please fix this issue!