static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAssets, string[] movedAssets, string[] movedFromAssetPaths) { // check if the config asset is missing, but only after other .asset files have been imported if (Array.FindIndex(importedAssets, asset => asset != null && asset.Contains("PostProcessResources.asset")) > -1) { PostProcessResourceStripper.EnsurePostProcessStrippingConfigAssetExists(); } }
static SetupStripping() { PostProcessResourceStripper.EnsurePostProcessStrippingConfigAssetExists(); PostProcessResourcesFactory.Init(PostProcessResourceStripper.Strip); }
static SetupStrippingConfig() { PostProcessResourceStripper.EnsurePostProcessStrippingConfigAssetExists(); }