Unity-Technologies / com.unity.demoteam.hair

An integrated solution for authoring / importing / simulating / rendering strand-based hair in Unity.
Other
730 stars 99 forks source link

Set material on runtime #65

Closed 60Stitch closed 1 year ago

60Stitch commented 1 year ago

Is there a way to change the material at runtime?. I have several prefabs with the same material and I would like to be able to give them a variation once they are instantiated. I can get the material and create a variant with no problem, but I can't figure out how to set it.