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
- [URP] Crash on GameObject::QueryComponentByType when baking a Reflection Probe in an unsaved/untitled Scene
- No Icons are used for the Entry and Exit States in the Inspector when selected in an Animator Controller
- Crash on PlayerMain(int, char const**) when exiting Standalone Player with a Particle System in the Scene
- No Icon is used for the Runtime Animator Controller Type in a Search Window when assigning an Animator Controller in the Animator Component
- Unity Version Control server textfield’s text overlaps with the dropdown triangle button in the Explore repositories window when an organization with a long name is selected
Resolution Note (fix version 1.0.0-preview.16):
Fixed in UI Builder 1.0.0-preview.16