#if UNITY_EDITOR using UnityEditor; using Enumerable = System.Linq.Enumerable; namespace Crosstales.RTVoice.EditorTask { /// Show the configuration window on the first launch. public class Launch : AssetPostprocessor { public static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAssets, string[] movedAssets, string[] movedFromAssetPaths) { if (Enumerable.Any(importedAssets, str => str.Contains(EditorUtil.EditorConstants.ASSET_UID.ToString()))) { Common.EditorTask.SetupResources.Setup(); SetupResources.Setup(); EditorIntegration.ConfigWindow.ShowWindow(4); } } } } #endif // © 2017-2020 crosstales LLC (https://www.crosstales.com)