Copyright © 2026 Unity Technologies
Steps to reproduce:
1. Create new Unity project using Universal 3D Template
2. Open UI Library window (right-click in Hierarchy > UI Toolkit > Standard Elements > UI Library)
3. In UI Library find “Angle Style Field” and double click on it to create it
4. In “Open UI stage” pop-up press “Continue” and save UXML file
5. Observe the Console window
Actual results: “ArgumentNullException: Value cannot be null.” errors are thrown in the Console window
Expected results: No errors are thrown in the Console when creating an Angle Style Field from the UI Library
Reproducible with versions: 6000.6.0a7
Can’t test with versions: 6000.6.0a6 and lower (No such feature to create UI Elements in Hierarchy window)
Tested on (OS): macOS Tahoe 26.4.1 (M1)
ArgumentNullException: Value cannot be null. Parameter name: source System.Linq.Enumerable.Where[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) (at <aeeed39ecf1c467398e79bb082319f54>:0) Unity.UI.Builder.DimensionStyleField.TryParseValue (System.String val, System.Single& value) (at /Users/bokken/build/output/unity/unity/Modules/UIBuilder/Editor/Utilities/StyleField/DimensionStyleField.cs:206) Unity.UI.Builder.DimensionStyleField.SetInnerValueFromValue (System.String val) (at /Users/bokken/build/output/unity/unity/Modules/UIBuilder/Editor/Utilities/StyleField/DimensionStyleField.cs:216) Unity.UI.Builder.StyleField`1[T].SetValueWithoutNotify (System.String newValue) (at /Users/bokken/build/output/unity/unity/Modules/UIBuilder/Editor/Utilities/StyleField/StyleField.cs:157) UnityEngine.UIElements.BaseField`1[TValueType].set_valueUXML (TValueType value) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Controls/InputField/BaseField.cs:254) UnityEngine.UIElements.BaseField`1+UxmlSerializedData[TValueType].Deserialize (System.Object obj) (at /Users/bokken/build/output/unity/unity/artifacts/LiveReloadableEditorAssemblies/Modules/Release_Mono/Unprocessed/Unity.UIToolkit.SourceGenerator/Unity.UIToolkit.SourceGenerator.UxmlSerializedDataGenerator/UnityEngine.UIElements.BaseField_1.gen.cs:49) Unity.UI.Builder.StyleField`1+UxmlSerializedData[T].Deserialize (System.Object obj) (at /Users/bokken/build/output/unity/unity/artifacts/LiveReloadableEditorAssemblies/Modules/Release_Mono/Unprocessed/Unity.UIToolkit.SourceGenerator/Unity.UIToolkit.SourceGenerator.UxmlSerializedDataGenerator/Unity.UI.Builder.StyleField_1.gen.cs:31)
Issues you vote on will appear here