Hi all,
I need to change a hdrp LayeredLit materials layers’ BaseColor runtime.
Since I could not find any reference documentations, I tried many logical options without success. (like:
rend.materials[3].SetColor(“_MainlayerBaseColor”, c);
rend.materials[3].Mainlayer.SetColor(“_BaseColor”, c);
rend.materials[3].Layers[1].SetColor(“_BaseColor”, c);
etc.
Since I can easily change these attributes runtime in editor/inspector, I’m pretty sure that it can be reached via C# code as well.
Anyone who knows the right syntax pls?
Thanks,
Paul