Hello,
We’ve been working on a project that uses the standard Unity materials, and we’re having an issue with getting the current emissive scale (brightness). There are quite a few answers out there concerning accessing them already, but they don’t seem to answer our question.
Basically, we have some point lights and light bulb models underneath them, and we want to be able to control the color and brightness of both the light (easy to do) and the model (requires editing the material’s “_EmissionColor” property). We haven’t had any issues setting “_EmissionColor”, but we can’t get the value from “_EmissionScaleUI” since it is UI only.
Other solutions said to simply multiply whatever color we’re passing in by some float to scale the emissiveness, but how can we get the current emissive scale? If our lights are at a brightness of “0.5”, how do we access “_EmissionScaleUI” to get that value?
Thanks