You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
574 B
C#
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;
|
|
}
|
|
}
|
|
}
|