Hi everyone,
How Would I be able to a point light Colour at runtime? As in the user has a colour picker (which I have) and then once the colour is selected, it saves and can be loaded again.
Does anyone know how to do this?
Any help is appreciated!
If you have the color already, I do not see how this would be a problem!
Simply get your object’s Light component, GetComponent(), and change its color value to your color.
//Let's say that the color picker returns a Color type.
Color newLightColor = ColorPicker.GetSelectedColor();
//Your "light" game object
go.GetComponent<Light>().color = newLightColor;