CompilationPipeline.RequestScriptCompilation

Switch to Manual
public static void RequestScriptCompilation ();

Description

Use this function to make the Unity Editor recompile every Script in your Project asynchronously. When the compilation finishes, the Unity Editor then loads the compiled assemblies.