23 lines
775 B
C#
23 lines
775 B
C#
#if UNITY_EDITOR
|
|
using UnityEditor;
|
|
using Enumerable = System.Linq.Enumerable;
|
|
|
|
namespace Crosstales.RTVoice.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 (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) |