Search Unity

Question Surface type - Custom shader using ShaderGUI

Discussion in 'Shader Graph' started by eduroam, Jul 15, 2021.

  1. eduroam

    eduroam

    Joined:
    Jul 2, 2015
    Posts:
    48
    Hello guys, I'm creating a custom shader with Shader Graph using a ShaderGUI script.

    When you create a shader with shader graph, Unity show you this default header.
    upload_2021-7-15_0-50-33.png

    But at the moment that I use my ShaderGUI those settings are gone. I'm interested to get access to those values, as when creating a custom shader without ShaderGUI.

    Is that possible?.

    I found these function to get access to some Variant,
    _editor.EmissionEnabledProperty();
    _editor.EnableInstancingField();
    _editor.DoubleSidedGIField();

    But I can't see any function to display to this header.

    Regards
    Eduardo
     

    Attached Files:

    NarberalTools likes this.