Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Bug regression URP shader graph no longer work with UGUI

Discussion in '2022.1 Beta' started by laurentlavigne, Nov 2, 2021.

  1. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,363
    all custom shaders that go in UGUI are now black in-camera!
    look ok in the scene view
    upload_2021-11-2_16-40-22.png
     
  2. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,136
    Hi @laurentlavigne,

    Could you please submit a bug report for this issue? Ideally with a reproduction project attached.
     
  3. DoctorShinobi

    DoctorShinobi

    Joined:
    Oct 5, 2012
    Posts:
    219
    I reported this exact issue a while ago and haven't received an answer regarding its status. Case 1376681
     
    laurentlavigne likes this.
  4. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,363
  5. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,363
    still broken in 2021.2.1
    case# 1379744
     

    Attached Files:

  6. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,136
    Thank you both, we'll look into it.
     
    DoctorShinobi likes this.
  7. SevenPointRed

    SevenPointRed

    Joined:
    Feb 3, 2016
    Posts:
    218
    DoctorShinobi likes this.
  8. DoctorShinobi

    DoctorShinobi

    Joined:
    Oct 5, 2012
    Posts:
    219
  9. SevenPointRed

    SevenPointRed

    Joined:
    Feb 3, 2016
    Posts:
    218
    I dont know why they have so many dupicate bugs on there, it must be easier just to refer to the current one.

    This is the last reponse I had from them with a workaround, it didnt work for me but it might help you.

    Code (CSharp):
    1.  
    2. 1) Switch on debug-mode in your Inspector, (image attached)
    3. 2) Go to the Material asset created based on the Shader Graph
    4. 3) Change the "Disabled Render Passes" field for the Material to look as seen in "RenderPassestoDisable.png"
    5.  
    RenderPassesToDisable.png InspectorDebugMode.png
     
  10. DoctorShinobi

    DoctorShinobi

    Joined:
    Oct 5, 2012
    Posts:
    219
    Doesn't work for me either
     
  11. AnMill

    AnMill

    Joined:
    Sep 5, 2018
    Posts:
    8
    Same issues. Black/red color where transparent should be
     
  12. DoctorShinobi

    DoctorShinobi

    Joined:
    Oct 5, 2012
    Posts:
    219
    @LeonhardP Sorry for the ping, but do you know if this bug is being worked on? It's a critical issue with no easy workaround that prevents me from upgrading to 2021.2/2022.1. It seems to affect a lot of people, and it's not clear whether this bug is going to be addressed at all.
     
    Last edited: Dec 11, 2021
    Babiole and MousePods like this.
  13. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,136
    Hi @DoctorShinobi,

    The issue is active and assigned to the developers. I've reached out to get an update on the situation.
     
  14. DoctorShinobi

    DoctorShinobi

    Joined:
    Oct 5, 2012
    Posts:
    219
    Thank you!
     
    LeonhardP likes this.
  15. DoctorShinobi

    DoctorShinobi

    Joined:
    Oct 5, 2012
    Posts:
    219
    To anyone who's still waiting, I just got this email
    upload_2022-2-2_20-16-44.png
    TLDR: It's not getting fixed. Apparently, this was never meant to work to begin with. I find it disappointing that authoring UI shaders through SG is still not officially supported so long after SG was introduced.
     

    Attached Files:

  16. SevenPointRed

    SevenPointRed

    Joined:
    Feb 3, 2016
    Posts:
    218
    Given the notice above, but also the roadmap post. Should we be redeveloping our existing games that use custom ui shaders? Or is it "safe" to wait for the support to be available? (Or is the roadmap item likely to be years out?)
     
  17. DoctorShinobi

    DoctorShinobi

    Joined:
    Oct 5, 2012
    Posts:
    219
    The roadmap post is in the "Under consideration" section, so it's unlikely to be released any time soon.