ProjectDDD/Packages/com.singularitygroup.hotreload/Editor/ProjectGeneration/ProjectGenenerationPostProcessor.cs
2025-07-08 19:46:31 +09:00

15 lines
454 B
C#

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;
}
}
}