Search Unity

Bug "Copy shader" and "Show generated code" options are gone in 2020.2

Discussion in 'Shader Graph' started by ph_, Dec 18, 2020.

  1. ph_

    ph_

    Joined:
    Sep 5, 2013
    Posts:
    232
    As the title says, up to Unity 2020.1 we could right clic on the master node and do "Copy Shader" or "Show generated code".
    It was very useful to many user, both to check what ShaderGraph is doing, and to convert ShaderGraph to a classic shader when ShaderGraph is too limiting.

    Both of these options seems to be gone in 2020.2.

    Does someone know if they moved, if there are really gone and if yes what would be the reason?

    Thanks

    This screenshot below was 2020.1:
    upload_2020-12-18_0-10-27.png

    And this one is 2020.2:
    upload_2020-12-18_0-11-52.png


    EDIT: If it helps someone, I just found that you can still access these option by right-click on a node that has a preview, just not the master node anymore!
     
    Last edited: Dec 18, 2020
  2. Oxeren

    Oxeren

    Joined:
    Aug 14, 2013
    Posts:
    121
    They've been moved. If you select the graph asset in your project you'll see both "View Generated Shader" and "Copy Shader" in the inspector.
     
    UbiBenKenobi, veasily and ph_ like this.
  3. ph_

    ph_

    Joined:
    Sep 5, 2013
    Posts:
    232
    Thanks, I missed it!
     
  4. wechat_os_Qy06eaOhICF9NcZoMWMLtv5cI

    wechat_os_Qy06eaOhICF9NcZoMWMLtv5cI

    Joined:
    Feb 1, 2018
    Posts:
    33
    Do you know to paste the copy shader?Duplicate shader graph is very common.don't know why can not duplicate the shader graph!
     
  5. wechat_os_Qy06eaOhICF9NcZoMWMLtv5cI

    wechat_os_Qy06eaOhICF9NcZoMWMLtv5cI

    Joined:
    Feb 1, 2018
    Posts:
    33
    never mind.It's Ctrl+D!o_O