accessing shader variables?

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.”

That’s where all of the various GetXXX and SetXXX methods on Material come into play:

See: Unity - Scripting API: Material

For example:

etc…

1 Like

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.