- Home /
Callback before editor recompile scripts?
Recently I've introduced some code generation into my project. For clarity let's assume I have code generator class that has method GenerateFileWithCode().
Now, I'd like to call this method every time when other scripts are about to recompile. I've managed to find callback that fires after recompilation, but that's not really helpful, because If I generate code AFTER scripts are compiled, I'm just creating new files with code that also need to be compiled, so after every compilation I must hit ctrl + R one more time.
Is there any callback I can use to fire code generation BEFORE scripts recompilation?
Your answer
Follow this Question
Related Questions
Callback before Unity reloads editor assemblies? 3 Answers
How can an editor script know when another script was removed from the project? 1 Answer
How do i get a callback every frame in edit mode 2 Answers
Detect when project is saved 1 Answer
Editor Script for attaching components to game object on creation 1 Answer