I have a series of simple cubes, and when the player selects a cube emission becomes enabled and the current color of the cube is used for the emission color, however I would like to turn the emission value up from 1 to 2.
Setting my prefab cube emission to 2 does not seem to make any difference. I am turning off emission at Start, and enabling it only when selected=true and this seems to set the emission value to 1.
I have searched around but I can’t seem to find an explanation for how to set the emission value, I’ve messed with my code for setting the emission color and enabling it, but there doesn’t seem to be an
“_EmissionScale” for me to manipulate.
This is my code for setting the emission color:
this.GetComponent<Renderer>().material.SetColor("_EmissionColor", myColor);
The only thing I have found to try for the emission value is this, but it doesn’t seem to have any effect:
this.GetComponent<Renderer>().material.SetFloat("_EmissionScaleUI", 2f);
I couldn’t see any “_EmissionScale” which I can use, any help would be really appreciated!
Thanks!