ProjectGenenerationPostProcessor.cs 454 B

1234567891011121314
  1. using System.IO;
  2. using UnityEditor;
  3. using UnityEngine;
  4. namespace SingularityGroup.HotReload.Editor.ProjectGeneration {
  5. class ProjectGenenerationPostProcessor : AssetPostprocessor {
  6. // Called once before any generation of sln/csproj files happens, can return true to disable generation altogether
  7. static bool OnPreGeneratingCSProjectFiles() {
  8. ProjectGeneration.GenerateSlnAndCsprojFiles(Application.dataPath).Forget();
  9. return false;
  10. }
  11. }
  12. }