static void InitWithout() { var window = FindUnusedAssetsWindow.CreateInstance <FindUnusedAssetsWindow> (); window.collection.Collection(new string[] { "Assets" }); window.CopyDeleteFileList(window.collection.deleteFileList); window.Show(); }
static void Init() { var window = FindUnusedAssetsWindow.CreateInstance <FindUnusedAssetsWindow> (); window.collection.saveEditorExtensions = false; window.collection.Collection(new string[] { "Assets" }); window.CopyDeleteFileList(window.collection.deleteFileList); window.Show(); }
static void InitAssetsOnlyResources() { var paths = Selection.objects .Select(c => AssetDatabase.GetAssetPath(c)) .Where(c => Directory.Exists(c)); if (paths.Any(c => string.IsNullOrEmpty(c))) { return; } var window = FindUnusedAssetsWindow.CreateInstance <FindUnusedAssetsWindow> (); window.collection.useCodeStrip = false; window.collection.Collection(paths.ToArray()); window.CopyDeleteFileList(window.collection.deleteFileList); window.Show(); }