|
The light is an area light. It affects only lightmaps and lightprobes.
See Also: Light.type, light component.
// Make the light an area light
light.type = LightType.Area;
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
void Example() {
light.type = LightType.Area;
}
}
import UnityEngine
import System.Collections
class example(MonoBehaviour):
def Example():
light.type = LightType.Area