private void PerformPrefabsToCategoryDropOperation(PrefabCategory prefabCategory) { var prefabsDropData = new PrefabsToCategoryDropOperationData(prefabCategory); prefabsDropData.FromLastDropOperation(); if (prefabsDropData.ValidDroppedPrefabs.Count != 0) { var prefabsDropOperation = new PrefabsToCategoryDropOperation(prefabsDropData); prefabsDropOperation.Perform(); } }
private void PerformPrefabsToCategoryDropOperation(PrefabCategory prefabCategory) { var prefabsDropData = new PrefabsToCategoryDropOperationData(prefabCategory); prefabsDropData.FromLastDropOperation(); if (prefabsDropData.ValidDroppedPrefabs.Count != 0) { var prefabsDropOperation = new PrefabsToCategoryDropOperation(prefabsDropData); prefabsDropOperation.Perform(); PrefabPreviewTextureCache.Get().GeneratePreviewsForPrefabCollection(prefabsDropData.ValidDroppedPrefabs, true); } }