RiderAssetPostprocessor.cs 455 B

12345678910111213141516
  1. using Unity.CodeEditor;
  2. using UnityEditor;
  3. namespace Packages.Rider.Editor.PostProcessors
  4. {
  5. public class RiderAssetPostprocessor: AssetPostprocessor
  6. {
  7. public static bool OnPreGeneratingCSProjectFiles()
  8. {
  9. var path = RiderScriptEditor.GetEditorRealPath(CodeEditor.CurrentEditorInstallation);
  10. if (RiderScriptEditor.IsRiderInstallation(path))
  11. return !ProjectGeneration.isRiderProjectGeneration;
  12. return false;
  13. }
  14. }
  15. }