using System; using System.Collections; using System.Collections.Generic; using UnityEngine; namespace BITKit { public class AutoFixSkinnedMeshRenderer : MonoBehaviour { private void Start() { foreach (var x in GetComponentsInChildren()) { x.updateWhenOffscreen = true; x.shadowCastingMode = UnityEngine.Rendering.ShadowCastingMode.Off; } } } }