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.
Asked
Active
Viewed 72 times
1 Answers
3
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.

derHugo
- 83,094
- 9
- 75
- 115
-
I was using the name. The reference name was different Thanks for the help. – Sameer Hussain Feb 16 '23 at 08:48