I have a material whose shader has a opacity property which I want to change at runtime. How do I get the reference to that property.
This is done via Material.SetFloat
.
You'll need to use the actual property reference name as key, not the Inspector display name, e.g.