mathe/Library/PackageCache/com.unity.visualscripting@1.9.0/Editor/VisualScripting.State/Analytics/StateMacroSavedEvent.cs
2024-09-20 20:30:10 +02:00

22 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;
}
}
}