UnityGame/Library/PackageCache/com.unity.visualscripting/Editor/VisualScripting.Flow/Analytics/FlowMacroSavedEvent.cs

22 lines
574 B
C#
Raw Normal View History

2024-10-27 10:53:47 +03:00
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;
}
}
}