Unity C# 检索prefab、animation、scenes未使用的脚本
using UnityEngine; using System; using System.IO; using System.Text; using ICSharpCode.SharpZipLib.Zip; using ICSharpCode.SharpZipLib.Core; using UnityEditor; using UnityEngine.UI; using System.Collections.Generic; public static class CheckPrefabScript { public static List<string> scriptStrs = new List<string>(); public static List<string> unUsed = new List<string>(); [MenuItem("Tools/Check all prefab Script")] public static void DoCheck() { string[] prefabPath = AssetDatabase.FindAssets("t:Prefab", new string[] { "Assets" }); string[] scenePath = AssetDatabase.FindAssets("t:Scene", new string