Search Issue Tracker
By Design
Votes
0
Found in
2017.4
2018.4
2018.4.12f1
2019.2
2019.3
2020.1
Issue ID
1203250
Regression
No
Using "EditorUserBuildSettings.SwitchActiveBuildTarget" in code does not update the "selectedBuildTarget"
Reproduction steps:
1. Open "Test.zip" project
2. "Tools" -> "SwitchMe"
3. Notice the Console Output
4. "Tools" -> "SwitchMe"
5. Notice the Console Output
Expected Result: Using "EditorUserBuildSettings.SwitchActiveBuildTarget" in code updates the "selectedBuildTarget"
Actual Result: Using "EditorUserBuildSettings.SwitchActiveBuildTarget" in code does not update the "selectedBuildTarget"
Reproduced with: 2020.1.0a17, 2019.3.0f4, 2019.2.17f1, 2018.4.15f1, 2017.4.35f1
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
- Unable to navigate in the Scene when the Readme.cs script of an Asset exists in the project
- Directional Lights impact Sprites they should not impact when the GameObjects are on different Rendering Layers
- Custom Scene view Context Menu does not bypass the ordinary Context Menu shortcut
- Style Sheets cannot be referenced in a Theme Style Sheet file when the folder that contains the Style Sheet has a pound ("#") symbol in it's name
- FontEngine.LoadFontFace fails with Invalid_File_Path when the file path contains Turkish characters
Resolution Note:
"selectedBuildTargetGroup" controls the Build Player Window selection only and is controlled independently from "SwitchActiveBuildTarget". You can use this property directly to set the selected group if desired.