Hello all
I want to access to “baked Shadow Radius” of Light component.
how can i do that ?

Hello all
I want to access to “baked Shadow Radius” of Light component.
how can i do that ?

Hi, did you figure out how to access this value in a script? i’d be interested in this as well.
thanks!
figured it out…
Light l = g.GetComponent<Light>();
SerializedObject serialObj = new SerializedObject(l);
SerializedProperty bakedShadowRadiusProp = serialObj.FindProperty("m_ShadowRadius");
// here the magic happens
bakedShadowRadiusProp.floatValue = myTarget.softshadowRadius;
serialObj.ApplyModifiedProperties();
also loot at:
https://github.com/MattRix/UnityDecompiled/blob/master/UnityEditor/UnityEditor/LightEditor.cs