Thanks, that is big help. But Im not getting it to work since _EmissionColor only takes a color It seems like. And color does not contain a parameter for emission, only color+alpha which does not help…
playerColor = new Color(255, 255, 0, 255);
rend = GetComponent();
rend.material.SetColor(“_EmissionColor”, playerColor);
I found a way! You can set the intensity by multiplying the color. Sounds crazy but it´t true
So to fade the intensity I can write “rend.material.SetColor(”_EmissionColor", playerColor * playerLjus)" :