testss
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user