Question by
9Daveed · Jan 29, 2017 at 10:17 PM ·
scripting problemscriptingproblem
How can I check the light intensity???
So, I tried to write a script, whic is checks my Directional Light's intensity, but I have a trouble with it.
public Light sun;
void Update()
{
if (sun.intensity == 0.2F)
{
Debug.Log("Mehu");
}
When the intensity hits the 0.2f, nothing happening... Why???
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612105909im_/https://answers.unity.com/themes/thub/images/avi.jpg)