Create a scripts-only build
Build only the scripting assemblies without processing scenes and assets for faster iteration during development.
Read time 1 minuteLast updated 20 days ago
A scripts-only build is a build that reuses the content from the previous build, rather than rebuilding it.
When testing script changes it can be useful to force a scripts-only build to avoid the time taken to rebuild the content. This can be useful if you know that there are data changes, but want to quickly test a code change, without applying the pending data changes.
To create a scripts-only build, create a build with the Force skip data build option, as follows:
- Open the Build Profiles window (File > Build Profiles).
- Next to the Build button, select the drop-down.
- Select Force skip data build.
You can also pass the flag when calling in custom build scripts.
BuildOptions.BuildScriptsOnlyBuildPipeline.BuildPlayerThe incremental build pipeline automates scripts-only builds. On platforms that support it, Unity automatically reuses the content from the previous build, as long as the content hasn't changed. In that case it's not necessary to explicitly invoke a scripts-only build.