Firstborn/Library/PackageCache/com.unity.visualscripting@1.../Editor/VisualScripting.Flow/Analytics/FlowMacroSavedEvent.cs
Schaken-Mods b486678290 Library -Artifacts
Library -Artifacts
2023-03-28 12:24:16 -05:00

22 lines
574 B
C#

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