using System.Collections; using System.Collections.Generic; using UnityEditor; using UnityEngine; public static class ClearNullScript { #if UNITY_EDITOR [MenuItem("CleanUp/Remove Missing Scripts Recursively Visit Prefabs")] private static void FindAndRemoveMissingInSelected() { var deepSelection = EditorUtility.CollectDeepHierarchy(Selection.gameObjects); int compCount = 0; int goCount = 0; fore..