Hi,
I've been searching for a while on this subject, but hadn't much luck
How do I make during runtime a copy of a ProceduralMaterial and edit it without influencing the original ?.
For some reason the Material constructor used to "clone" a source material doesn't work
[Material Documentation][1]
[And method suggested here for standard materials, doesn't apply to Substances][2]
My goal is having just this one material, and occasionally randomize it's values on certain objects, and i'd like to do it just at runtime, without touching my assets, or leaking materials.
Thank you !
[1]: http://docs.unity3d.com/Documentation/ScriptReference/Material.Material.html
[2]: http://answers.unity3d.com/questions/208409/how-do-i-duplicate-a-material.html
↧