Search Issue Tracker
Fixed in 1.0.0-preview.16
Votes
0
Found in [Package]
1.0.0-preview.15
Issue ID
1356248
Regression
Yes
"System.ArgumentException" is thrown when installing UI Builder Package
Steps to reproduce:
1. Open a new project
2. Open Window>Package Manager
3. Press Add Package (+) > Add Package from git URL
4. Type "com.unity.ui.builder" in the Text Field and press Add
Expected result: Package installs with no errors
Actual result: System.ArgumentException error is thrown
Reproducible with: 1.0.0-preview.15 (2019.4.29f1, 2020.3.16f1)
Not reproducible with: 1.0.0-preview.14, 1.0.0-preview.16 (2019.4.29f1, 2020.3.16f1, 2021.1.13f1, 2021.1.17f1, 2021.2.0b8, 2022.1.0b5), 1.0.0-preview.15 (2021.1.13f1, 2021.1.17f1, 2021.2.0b8, 2022.1.0b5)
Could not test with: 1.0.0-preview.14, 1.0.0-preview.16 (2021.1.0a1, 2021.1.12f1 (due to Console errors))
Note:
Full error message: System.ArgumentException: A factory for the type Unity.UI.Builder.BuilderPane+UxmlFactory was already registered
at UnityEngine.UIElements.VisualElementFactoryRegistry.RegisterFactory (UnityEngine.UIElements.IUxmlFactory factory) [0x00040] in /Users/bokken/buildslave/unity/build/External/MirroredPackageSources/com.unity.ui/Core/UXML/VisualElementFactoryRegistry.cs:33
at UnityEditor.UIElements.UXMLEditorFactories..cctor () [0x00285] in /Users/bokken/buildslave/unity/build/External/MirroredPackageSources/com.unity.ui/Editor/UXMLEditorFactories.cs:102
UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes (System.Type[]) (at /Users/bokken/buildslave/unity/build/Editor/Mono/EditorAssemblies.cs:138)
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
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
Resolution Note (fix version 1.0.0-preview.16):
Fixed in UI Builder 1.0.0-preview.16