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
- Test Runner’s vertical scrollbar overlaps with the up and down arrows and upper toolbar tabs when the window is minimized
- The Input Field view is not updated when deleting lines of text
- The scrollbar does not respect empty lines in the Input Field
- “Texture Atlas Viewer“ button text overlaps another button when the UI Toolkit Debugger is narrowed
- Thresholds are no longer automatically calculated after deleting Motion fields in Blendtrees
Add comment