I've upgraded my project to LWRP, I've changed my materials to: LWRP/lit. But in one of the gamemodes i need to change one my materials' color by script. I used to do it simply like wallMat.color = Color.red
, but at LWRP that code doesn't work, how to fix it?
Edit: LWRP = Light Weight Render Pipeline