コード例 #1
0
        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());
            }
        }
コード例 #2
0
 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));
 }
コード例 #4
0
 static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAssets, string[] movedAssets, string[] movedFromAssetPaths)
 {
     UniEditorProfiler.LogTime(nameof(BuildConfigurationsPostProcessor), BuildConfigurationBuilder.Rebuild);
 }
コード例 #5
0
 public static AssetDeleteResult OnWillDeleteAsset(string assetPath, RemoveAssetOptions options)
 {
     UniEditorProfiler.LogTime(nameof(AtlasCleaner), () => RemoveFromAtlases(assetPath));
     return(AssetDeleteResult.DidNotDelete);
 }