Search Issue Tracker
Fixed in 2017.3.0f3
Fixed in 5.6.X
Votes
2
Found in
5.6.3f1
Issue ID
938685
Regression
Yes
Launching Unity in batchmode with a specified buildTarget does not change selectedBuildTargetGroup
1. Download & open the attached project
2. Observe that:
* Current Build Target is Android
* VR Support is disabled on Android Build Target Group
* VR Support is enabled on Standalone Build Target Group
3. Close the project
4. Run Unity in batchmode with these arguments (-buildTarget osx can be changed to -buildTarget win64):
"<pathToUnityInstallation>" -quit -batchmode -projectpath "<pathToSampleProject>" -buildTarget osx -executeMethod testscript.TestInformation -logfile log.txt
5. Observe the Debug.Log outputs from TestInformation method.
Expected result:
Build target: StandaloneOSX
Build target group: Standalone
VR Supported: True
Actual result:
Build target: StandaloneOSX
Build target group: Android
VR Supported: False
Reproduced on: 5.5.4p2, 5.6.3f1, 2017.1.0p2, 2017.3.0a2
Did not reproduce on: 2017.2.0b3
Note: On 2017.3.0a2, the BuildTargetGroup is seen as "Unknown" instead of the previous one.
Comments (1)
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
- Nested Canvases with the same Order in Layer ignore Z position for render order when sharing parent Canvas
- ShaderGraph Material subasset loses texture reference when reimporting all assets while using a scripted importer
- Values changed on a prefab are not retained when entering Play Mode
- Shadow Caster 2D shadows partially disappear in specific spots when used with Composite Collider 2D in the Game view
- Hierarchy and Library parts in UI Builder are inaccessible when UI Builder window is resized and these elements no longer fit in the window
jayd16
Aug 07, 2017 17:18
Somewhat related and strange. I added my own command line param ("-buildTargetGroup iOS" for example) to force the build target group be set. This is fine on Windows but the OSX version of Unity seems to key off of this command line string.
"Aborting batchmode due to failure:
Fatal Error! Build target group 'iOS' could not be used."