Aucune description
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

StateMacroSavedEvent.cs 574B

123456789101112131415161718192021
  1. using UnityEditor;
  2. namespace Unity.VisualScripting.Analytics
  3. {
  4. class StateMacroSavedEvent : 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(StateGraphAsset))
  12. {
  13. UsageAnalytics.CollectAndSend();
  14. break;
  15. }
  16. }
  17. return paths;
  18. }
  19. }
  20. }