Search Issue Tracker
By Design
Votes
0
Found in
2018.3
2019.1
2019.2
2019.3.0a1
2019.3.0a2
Issue ID
1152748
Regression
No
Inconsistent results between Build and Build & Run when errors occur during building
In the attached project, an animation controller is present with missing parameters - this causes errors to occur during the building process. When building however, the build result will be different depending on whether you using Build or Build & Run
Build - Errors appear during the build process but the build is successful and the files are deposited in the build location
Build & Run - Errors appear during the build process, the build fails and files are not deposited in the build location
1. Launch Unity
2. Open the attached project
3. Open SampleScene.scene
4. Create a build using File > Build
5. Create a build using File > Build & Run
Expected Result:
The two methods of building should yield the same build results.
Actual Result:
Building via "Build" is successful, but building via "Build & Run" fails.
Tested on Windows.
Occurs on 2017.4.f21, 2019.3.0a2
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Warnings in the Bug Reporter window are cut off and not truncated when the Bug Reporter window is resized to its minimum size
- Color is incorrectly applied to objects when initialized with non-normalized parameters
- SerializationUtility.GetManagedReferencesWithMissingTypes() don't return null when “Prefab has missing SerializeReference Types“ warning banner is present
- Memory leak when VFX Graph is open and Camera has "Target Texture" enabled
- The Canvas component's warning box is missing an apostrophe when Additional Shader Channels is set to "Normal" and "Tangent" with Render Mode set to "Screen Space - Overlay"
Resolution Note:
The "Build & Run" option uses the BuildOptions.StrictMode option that causes the build to fail for all errors and exceptions. "Build" does not use this option for legacy reasons and only fail when a "BuildFailedException" is thrown.