Change Max Shadow Distance at Runtime

Hi all,
Does anyone know if its possible to change the max shadow distance at runtime in URP? I understand you can set different presets and change those at runtime, but I’m interested to know if its possible to change shadow distance on its own or across all presets.
Thanks!

QualitySettings.shadowDistance = value;
UniversalRenderPipelineAsset urp = (UniversalRenderPipelineAsset)GraphicsSettings.currentRenderPipeline;
urp.shadowDistance = value;
3 Likes

Thank you!

1 Like