Beispiel #1
0
        private void PerformPrefabFoldersToCategoryDropOperation(PrefabCategory prefabCategory)
        {
            var prefabFoldersDropData = new PrefabFoldersToCategoryDropData(prefabCategory, PrefabFoldersDropSettings.ProcessSubfolders);

            prefabFoldersDropData.FromLastDropOperation();

            if (prefabFoldersDropData.PrefabFoldersDropDataCollection.Count != 0)
            {
                var prefabFoldersDropOperation = new PrefabFoldersToCategoryDropOperation(prefabFoldersDropData);
                prefabFoldersDropOperation.Perform();
            }
        }
        private void PerformPrefabFoldersToCategoryDropOperation(PrefabCategory prefabCategory)
        {
            var prefabFoldersDropData = new PrefabFoldersToCategoryDropData(prefabCategory, PrefabFoldersDropSettings.ProcessSubfolders);

            prefabFoldersDropData.FromLastDropOperation();

            var dropDataCollection = prefabFoldersDropData.PrefabFoldersDropDataCollection;

            if (dropDataCollection.Count != 0)
            {
                var prefabFoldersDropOperation = new PrefabFoldersToCategoryDropOperation(prefabFoldersDropData);
                prefabFoldersDropOperation.Perform();

                foreach (var dropData in dropDataCollection)
                {
                    PrefabPreviewTextureCache.Get().GeneratePreviewsForPrefabCollection(dropData.ValidPrefabs, true);
                }
            }
        }