23 lines
759 B
C#
23 lines
759 B
C#
#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) |