Search Unity

accessing shader variables?

Discussion in 'Scripting' started by Marscaleb, May 20, 2021.

  1. Marscaleb

    Marscaleb

    Joined:
    Jan 7, 2014
    Posts:
    1,037
    How can I access variables and properties in a material that are part of a special shader?

    Like I grabbed this dissolve shader from the store, but for it to be useful in game I need to animate the dissolve amount. But that's not a regular property of "material."
     
  2. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,909
  3. Bunny83

    Bunny83

    Joined:
    Oct 18, 2010
    Posts:
    3,998
    You mean a shader like this? The answer should contain all necessary details. Though when you use a shader from the store, you may have to figure out how those properties are called.