Files
2026-06-17 20:44:53 +03:00

18 lines
521 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() {
if (MultiplayerPlaymodeHelper.IsClone) {
return false;
}
ProjectGeneration.GenerateSlnAndCsprojFiles(Application.dataPath).Forget();
return false;
}
}
}