I have a code that manually sets the ShadowQuality
and shadowDistance
, there is only one setting about shadows in the quality settings and I’m not sure why some shadow settings like shadowDistance
not listed in there (anymore(?)).
Because of this, I manually have to set the unlisted settings with a script, but it doesn’t seem to work at all.
QualitySettings.shadows = (UnityEngine.ShadowQuality)ShadowQuality.HardShadows;
QualitySettings.shadowDistance = 1000;
Debug.Log("Applied shadows");
It does print the “Applied shadows” but it does not apply at all.
I’m using 2022.3.5f1 with URP.
How can I solve this?