BLACKISH DEV BLOG Support
 

 

Unity: Changing shader color properties

If you want to change a color-value in a material’s shader you can use Material.SetColor(“_PropertyName”, Color.white); If you don’t know what that color value is called in the shader, get the the source of all the shaders in Unity here and have a look inside. This page in the docs might help as well…
Bookmark the permalink. Follow any comments here with the RSS feed for this post. Trackbacks are closed, but you can post a comment.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>