| Parameter | Description |
|---|---|
| options | Optional parameter to specify whether the Editor should clear the build cache before compilation. |
Allows you to request that the Editor recompile scripts in the project.
When you call this method, the Unity Editor checks whether there have been any changes to scripts, or to settings affecting script compilation, and recompiles those scripts which require it.
After the compilation, if the compilation was successful, the Editor reloads all assemblies.
If you want to force recompilation of all scripts, even if there are no changes, you can pass RequestScriptCompilationOptions.CleanBuildCache for the options parameter.
You might want to force recompilation of all scripts in the following situations: