Join our Discord Channel
Hi.I did a quick search and from what I understand you can't change it directly.what might be possible is to setup different quality settings.Then Set Quality Level (Ecosystem) to change
Wouldn’t that be it?https://forum.unity.com/threads/change-max-shadow-distance-at-runtime.1325874/
Quote from: Christoph on April 04, 2023, 10:59:29 PMWouldn’t that be it?https://forum.unity.com/threads/change-max-shadow-distance-at-runtime.1325874/Hi thank you. Can you please make a playmaker action from this? I use default render pipleline
using UnityEngine;namespace HutongGames.PlayMaker.Actions{ [ActionCategory("QualitySettings")] [Tooltip("Sets the Shadow Distance from the Project Quality Settings at runtime.")] public class SetShadowDistance : FsmStateAction { [RequiredField] [Tooltip("The Shadow Distance to set.")] public FsmFloat shadowDistance; [Tooltip("Repeat every frame while the state is active.")] public bool everyFrame; public override void Reset() { shadowDistance = 0f; everyFrame = false; } public override void OnEnter() { DoSetShadowDistance(); if (!everyFrame) { Finish(); } } public override void OnUpdate() { DoSetShadowDistance(); } public void DoSetShadowDistance() { QualitySettings.shadowDistance = shadowDistance.Value; } }}