Search Issue Tracker
Fixed in 5.4.0
Votes
0
Found in
5.4.0b9
Issue ID
778258
Regression
Yes
Unclear IsBuildTargetSupported(targetPlatform) error message in the console when building AssetBundles
Started to happen since 5.4.0b9.
Reproduced on 5.4.0b9 and b10.
Editor from 5.4.0b9 has stopped temporary change specified platform in BuildPipeline, when building AssetBundles. If at some point project has been set to WebPlayer platform, and later on, that platform was removed or wasn't installed with a new Unity version, building AssetBundles console throws an error message, which doesn't tell anything useful to user:
Error:
IsBuildTargetSupported(targetPlatform)
UnityEditor.BuildPipeline:BuildAssetBundles(String, BuildAssetBundleOptions, BuildTarget)
CreateAssetBundles:BuildAllAssetBundles() (at Assets/BundleCompiler.cs:10)
This message means, that that selected platform in project settings (in this case WebPlayer) is not installed with a current Unity version.
Workaround:
To avoid the error, in "Build Settings", user has to switch to any other installed platform (for example: if standalone was installed, then manual switch to this platform has to be performed.).
Repro steps:
1. Open project "TestCase.zip". Editor should not have WebPlayer platform installed.
2. Build AssetBindles pressing menu bar "Assets -> Build AssetBundles".
3. Error is showed in the console. Observe in "Build Settings" that none of the platforms are actively selected.
Expected results: get a readable error message.
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
- "Draw Additional Lights Shadowmap" calls increase when custom MaterialBlockProperty is used
- Crash on _platform_memmove when importing the "Dragon Crashers - URP 2D Sample Project" to a new 2D project
- "Shader is not supported on this GPU" warnings and and shaders are not loading when building the project for non-Chromium browsers
- [iOS][URP] The screen flickers and the "Execution of the command buffer was aborted due to an error during execution" error is thrown continuously
- Shortcut Manager shows empty conflict filter when resolving runtime conflicts involving different contexts
megamoba
Aug 09, 2016 06:39
I'm had the same problem, reproduced on 5.4.0f3.