BITFALL/Assets/BITKit/Unity/Scripts/Components/AutoFixSkinnedMeshRenderer.cs

21 lines
394 B
C#
Raw Normal View History

2023-11-21 18:05:18 +08:00
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<SkinnedMeshRenderer>())
{
x.updateWhenOffscreen = true;
x.shadowCastingMode = UnityEngine.Rendering.ShadowCastingMode.Off;
}
}
}
}