Maze / Library /PackageCache /com.unity.visualscripting@1.8.0 /Editor /VisualScripting.Flow /Analytics /FlowMacroSavedEvent.cs
| 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; | |
| } | |
| } | |
| } | |