static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAssets, string[] movedAssets, string[] movedFromAssetPaths)
        {
            var isChanged = importedAssets.Any(x => commandsMapPaths.Contains(x));

            if (isChanged)
            {
                UniEditorProfiler.LogTime(nameof(BuildConfigurationsPostProcessor), () => BuildConfigurationBuilder.Rebuild());
            }
        }
 public override void Execute(IUniBuilderConfiguration configuration)
 {
     UniEditorProfiler.LogTime($"===BUILD COMMAND {Name} ===", () => ExecuteCommands(configuration));
 }
 public static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAssets, string[] movedAssets, string[] movedFromAssetPaths)
 {
     UniEditorProfiler.LogTime(nameof(AtlasGenerator), () => PackIntoAtlases(importedAssets, movedAssets, movedFromAssetPaths));
 }
 static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAssets, string[] movedAssets, string[] movedFromAssetPaths)
 {
     UniEditorProfiler.LogTime(nameof(BuildConfigurationsPostProcessor), BuildConfigurationBuilder.Rebuild);
 }
Beispiel #5
0
 public static AssetDeleteResult OnWillDeleteAsset(string assetPath, RemoveAssetOptions options)
 {
     UniEditorProfiler.LogTime(nameof(AtlasCleaner), () => RemoveFromAtlases(assetPath));
     return(AssetDeleteResult.DidNotDelete);
 }