9092858a58
I updated everything to the latest Unity Editor. Also realized I had the wrong shaders on my hairs, those are fixed and the hairs look MUCH better!
22 lines
574 B
C#
22 lines
574 B
C#
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;
|
|
}
|
|
}
|
|
}
|