unity-vendor-packages/com.singularitygroup.hotreload/Editor/ProjectGeneration/ProjectGenenerationPostProc...

15 lines
454 B
C#
Raw Permalink Normal View History

2025-09-07 14:18:42 +08:00
using System.IO;
using UnityEditor;
using UnityEngine;
namespace SingularityGroup.HotReload.Editor.ProjectGeneration {
class ProjectGenenerationPostProcessor : AssetPostprocessor {
// Called once before any generation of sln/csproj files happens, can return true to disable generation altogether
static bool OnPreGeneratingCSProjectFiles() {
ProjectGeneration.GenerateSlnAndCsprojFiles(Application.dataPath).Forget();
return false;
}
}
}