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
- "Objects are trying to be loaded during a domain backup." errors on entering Playmode
- Transform Node does not have outputs when it is created
- Changing the Default Icon does not change the executable's icon when re-building the project
- Texture is stored upside down when using Blit
- [OpenGLES][XR] Zooming in on the camera's URP opaque texture causes "double vision" on Quest in OpenGLES3
Resolution Note (fix version 1.0.0-preview.16):
Fixed in UI Builder 1.0.0-preview.16