Question by
CptGreenwood · Feb 07, 2017 at 09:13 AM ·
scene-switchingdirectional light
Intensity Directional Light
I have two scenes, a title screen and a game scene. When starting the game scene in the editor directly it is well illuminated, but when I start the title screen and then switch to the game scene (LoadLevel) the intensity of the illumination is recognizable lower. Why that?
Comment
Answer by Rickywild · Feb 07, 2017 at 01:12 PM
Do you have control of your lights in any scripts? Maybe you should create a script and add it to your light object. Then try something like,
[Header("Light Intensity")]
[Range(0.1f, 8.0f)]
public float _intensity;
private Light _myLight;
void Start()
{
_myLight = this.GetComponent<Light>();
_myLight.intensity = _intensity;
}
Hope that helps!
Answer by CptGreenwood · Feb 07, 2017 at 01:18 PM
Hi Rickywild, my title screen does not have a light source at all and in my game scene there is no script dealing with light intensity. Greetz