I am trying to alter my HDRP Lit material’s emissive color and emissive intensity but it does not get reflected on my gameObjects. I have even tried using “_EmissionColor” and still there was no change. However the material that is suppose to change, shows as (Instance). What am I doing wrong here?
public GameObject[] myGOs;
private void Start () {
for(int i = 0; i<myGOs.Length; i++){
myGOs[i].GetComponent<Renderer>().material.SetColor("_EmissiveColor", new Vector4(0.8196f,0.783f,0,1) * 3.0f);
}
}