Search Issue Tracker
Fixed in 5.0.X
Votes
0
Found in
4.3.0a1
Issue ID
550902
Regression
No
EditorUserBuildSettings.SwitchActiveBuildTarget() does not update build settings fully
SwitchActiveBuildTarget() switches the active build target but when used with a standalone target, does not update EditorUserBuildSetting's internal state correctly such that it will display as it should in the project's build settings.
This affects both the method and using the -buildTarget command-line switch.
Reproduction with -buildTarget:
- Open Editor and set the target platform to: PC, Mac & Linux -> Linux x86.
- From console run the command: Unity -buildTarget PC
(or use any other parameter to switch the target architecture or standalone platform)
When Editor opens, see that the parameter was ignored. The target platform is still set to Linux.
Reproduction with SwitchActiveBuildTarget:
- Put the BuildTargetSwitch.cs script in Assets/Editor.
- Select Windows standalone as the current build target from the build dialog.
- Select "Switch to Linux" from "My Menu" in the menu bar.
- Observe that the build dialog still shows Windows as the current build target.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Graphical issues are caused by GPU Occlusion Culling when using Amplify Shaders
- ”Last item reached” warning is thrown when no search results are found in UI Toolkit Layout Debugger
- UI Elements overlap in the Shortcuts window when docked and resized to a smaller window size
- UIBuilder DataSourcePath dropdown fails to show properties when binding to abstract classes
- Errors are logged when importing an asset at a path with Firebase
Add comment