Won't change the shadow resolution of the sun during runtime

Hi, I noticed that when I change the shadow resolution of the sun during runtime via the code, the changes won’t apply to the sun. (Unity 6000.23f1 LTS) HDRP

Sun.shadowResolution = LightShadowResolution.Low;
or
Sun.shadowCustomResolution = 512;

2 Likes

if anybody want the solution I found it and post it here.