light type. LightType. light.type. ffs.
in the variables bit - Light _yourlight; //define light variable then maybe in the start() _yourlight = GetComponent<Light>(); //assign the light component to _yourlight variable if(_yourlight.type= LightType.Directional){ //check if the type is of LightType.Directional... Debug.Log("it's directional!"); } Reaaallly annoyed that this took ages to find... but hey, here's how you check the type of light you have, sort of.