Ejemplo n.º 1
0
        static void InitWithout()
        {
            var window = FindUnusedAssetsWindow.CreateInstance <FindUnusedAssetsWindow> ();

            window.collection.Collection(new string[] { "Assets" });
            window.CopyDeleteFileList(window.collection.deleteFileList);

            window.Show();
        }
Ejemplo n.º 2
0
        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();
        }
Ejemplo n.º 3
0
        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();
        }