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

How to change the shader's menu name using Shader Graph?

Discussion in 'Graphics Experimental Previews' started by adamgryu, Oct 1, 2018.

  1. adamgryu

    adamgryu

    Joined:
    Mar 1, 2014
    Posts:
    188
    In regular shaders, you can set the shader's menu name with:

    Shader "Custom Shaders/My Shader"

    I can't figure out how to do the same with Shader Graph. I'd like to modify this so my ShaderGraph shaders can be categorized like the rest of them.
     
  2. Korindian

    Korindian

    Joined:
    Jun 25, 2013
    Posts:
    584
    Under the name of the shader in the top left of the Shader Graph (where the properties are added), there is a small faint dash. Double click that to enter the name of the shader.
     
  3. adamgryu

    adamgryu

    Joined:
    Mar 1, 2014
    Posts:
    188
    Thanks so much! I couldn't find that anywhere in the documentation, and I didn't notice it in the editor.
     
    Korindian likes this.
  4. chantey

    chantey

    Joined:
    Mar 5, 2017
    Posts:
    49
    This may have changed slightly in 2019.3. Under the name of the shader (where the properties are), in dark grey is the name of the menu 'folder', default is 'Shader Graphs'. Double click to edit.
     
    GreyHour, borgstation and Dr-Nick like this.
  5. Dr-Nick

    Dr-Nick

    Joined:
    Sep 9, 2013
    Posts:
    25
    To provide a visual reference, double clicking Shader Graphs will allow you set the menu name of the shader.

    upload_2020-12-21_13-22-0.png
     
    GreyHour, redwyre, Tanygyn and 13 others like this.
  6. Reahreic

    Reahreic

    Joined:
    Mar 23, 2011
    Posts:
    254
    Thank you, I was staring at the screen wondering if I'd gone blind lol