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 expose the gradient in ShaderGraph and change it via code?

Discussion in 'Graphics Experimental Previews' started by Cell-i-Zenit, Dec 19, 2019.

  1. Cell-i-Zenit

    Cell-i-Zenit

    Joined:
    Mar 11, 2016
    Posts:
    290
    Hi,

    there is a Gradient Property in ShaderGraph and i would like to set the values differently via Code.

    How can i do that?
     
    ihgyug and ROBYER1 like this.
  2. cuzner

    cuzner

    Joined:
    Oct 1, 2015
    Posts:
    11
    Why is the Gradient Property in ShaderGraph not exposable??
    This is a fundamental basic operation. What is the point of the gradient if you can only use it in the graph and not modify the values.

    ShaderGraph is a great tool but definitely needs work.
    Blender3D has had this functionality for Years!!
     
  3. ihgyug

    ihgyug

    Joined:
    Aug 5, 2017
    Posts:
    194
    Would be quite handy indeed...
     
  4. mitaywalle

    mitaywalle

    Joined:
    Jul 1, 2013
    Posts:
    253
    pwka and Cell-i-Zenit like this.