using System.Collections; using System.Collections.Generic; using UnityEngine; [ExecuteAlways] public class MeshSkewFix : MonoBehaviour { public bool fix; public GameObject rootGameObject; // Start is called before the first frame update void Start() { } // Update is called once per frame void Update() { if (fix) { fix = false; foreach (var t in GetComponentsInChildren()) { var joint = t.GetComponent(); if (joint) { var meshFilter = t.GetComponent(); var meshRend = t.GetComponent(); } } } } }