WuhuIslandTesting/Library/PackageCache/com.unity.visualscripting@1.7.8/Editor/VisualScripting.State/Analytics/StateMacroSavedEvent.cs
2025-01-07 02:06:59 +01:00

21 lines
574 B
C#

using UnityEditor;
namespace Unity.VisualScripting.Analytics
{
class StateMacroSavedEvent : UnityEditor.AssetModificationProcessor
{
static string[] OnWillSaveAssets(string[] paths)
{
foreach (string path in paths)
{
var assetType = AssetDatabase.GetMainAssetTypeAtPath(path);
if (assetType == typeof(StateGraphAsset))
{
UsageAnalytics.CollectAndSend();
break;
}
}
return paths;
}
}
}