- Home /
Change fade distance of shadows on pointlight through script in HDPR
I want to change the shadow fade distance of my pointlights in a script. But I can't find the property anywhere. Is it possible? I want to do something like this:
public void SetFadeDistance()
{
Light[] lights = FindObjectsOfType(typeof(Light)) as Light[];
foreach (Light light in lights)
{
if(light.gameObject.name == "Point Light")
{
//Change fade distance
}
}
}
Comment
Your answer
Follow this Question
Related Questions
Problem with lighting an object. 1 Answer
Trying to make light pass through object 0 Answers
Directional Light : Lighting a Cube. 1 Answer
Point Lights just dont work 3 Answers
Lighting not consistent 0 Answers