Hello. I want to change the "Health Amount" slider of my material via a Playmaker action. The Health Amount slider on my Shader Forge Shader material will change the opacity, color, and length of a health bar material.
How do we "get" and set the different editable values of that material at runtime?
This would also be useful for burning up an object that has a fire erosion effect, or it would be useful for changing the material to slowly become wet when the game starts raining.
What is the best way to get and set these properties?
In some cases I want to affect the material and cause it to affect all objects with that shader in the scene. In other cases, I am also hoping that changing properties of this material on one object won't change the way it looks on other objects, since different enemies will use the same material but have different health amounts.