21 lines
394 B
C#
21 lines
394 B
C#
|
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;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|