暫無描述
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

FlowMacroSavedEvent.cs 574B

123456789101112131415161718192021
  1. using UnityEditor;
  2. namespace Unity.VisualScripting.Analytics
  3. {
  4. class FlowMacroSavedEvent : UnityEditor.AssetModificationProcessor
  5. {
  6. static string[] OnWillSaveAssets(string[] paths)
  7. {
  8. foreach (string path in paths)
  9. {
  10. var assetType = AssetDatabase.GetMainAssetTypeAtPath(path);
  11. if (assetType == typeof(ScriptGraphAsset))
  12. {
  13. UsageAnalytics.CollectAndSend();
  14. break;
  15. }
  16. }
  17. return paths;
  18. }
  19. }
  20. }