Singularity/Assets/Plugins/crosstales/FileBrowser/Scripts/Editor/Task/Launch.cs

23 lines
759 B
C#
Raw Normal View History

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