Hello, so I use this:
renderer = GetComponent<Renderer>();
renderer.material.SetFloat("_EmissionScaleUI", 1);
renderer.material.SetColor("_EmissionColorUI", Color.yellow);
Emission is set to 1 in the editor, but it doesn’t update in game unless I move the slider manually.
Is there any way to make the material update or something?
Thanks