Hi I have a glow effect in my 2d game with a shader Graf does anyone know how to change the color of the material using a script? thanks ,Hi I have a glow effect in my 2d game with a shader Graf does anyone know how to change the color of the material using a script? thanks
You can either use renderer.material.SetColor, or use a MaterialPropertyBlock.
The thing with shader graph is that the name you need to use in code is not the same as shown in the graph. The graph shows the display name (inspector), you need to show the detailed information of the color property, where the property ID is displayed.