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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Add comment