Search Unity

Resolved No way to specify shader graph property default values?

Discussion in 'Shader Graph' started by lcompton, Dec 23, 2020.

  1. lcompton

    lcompton

    Joined:
    Mar 31, 2018
    Posts:
    102
    I've noticed that in recent versions of Shader Graph (specifically for HDRP shaders), you can no longer specify default values for properties. You were able to do so in older versions of Shader Graph. I'm currently using Unity 2020.2 and Shader Graph 10.2.2. I feel like I'm missing something basic here, but I'm still stumped. I'm also sort of baffled that more people aren't asking about this. Thanks in advance for any help.
     
    Marcoom and Sarisarinyama like this.
  2. lcompton

    lcompton

    Joined:
    Mar 31, 2018
    Posts:
    102
    I figured it out. For those who have the same problem, here's what you do...
    • create your property
    • select it
    • switch to "Node Settings" in the Graph Inspector
    • defaults are specified in there now
     
  3. Hemouz

    Hemouz

    Joined:
    Sep 1, 2019
    Posts:
    1
    Hey, Thank you So much; you've saved my life
     
    ToxicTree, Marcoom and lcompton like this.
  4. lopezalbertogabriel

    lopezalbertogabriel

    Joined:
    Mar 16, 2021
    Posts:
    1
  5. ambriashir

    ambriashir

    Joined:
    Dec 23, 2014
    Posts:
    2
    Nice find
     
  6. Stephanommg

    Stephanommg

    Joined:
    Aug 18, 2014
    Posts:
    88
    I am setting the default values in the shader graph but they still don't appear in the material.
     
  7. jschiefner

    jschiefner

    Joined:
    Nov 6, 2018
    Posts:
    2
    I believe you have to set the property to "exposed", you can do so in the Node Settings panel that @lcompton mentioned