Not signed in
Copyright © 2026 Unity Technologies
Steps to reproduce:
1. Create new Unity project using Universal 3D Template
2. In Hierarchy create Button object (Right-click > UI Toolkit > Standard Elements > Button)
3. In “Open UI stage” pop-up press “Continue” and save UXML file
4. In Hierarchy > NewUXMLTemplate > create Image object and select it (Right-click > UI Toolkit > Standard Elements > Image)
5. In Inspector > Attributes > UV > increase any value (X, Y, W or H)
6. Observe the Console window
Actual results: “ArgumentException: Object of type 'System.Single' cannot be converted to type 'UnityEngine.Rect’.” errors thrown in the Console when increasing the value
Expected results: No errors are thrown in the Console window
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)
ArgumentException: Object of type 'System.Single' cannot be converted to type 'UnityEngine.Rect'. System.RuntimeType.CheckValue (System.Object value, System.Reflection.Binder binder, System.Globalization.CultureInfo culture, System.Reflection.BindingFlags invokeAttr) (at <b3de1de343a349299daf7e70e6f0b89b>:0) System.Reflection.RuntimeFieldInfo.SetValue (System.Object obj, System.Object val, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Globalization.CultureInfo culture) (at <b3de1de343a349299daf7e70e6f0b89b>:0) System.Reflection.FieldInfo.SetValue (System.Object obj, System.Object value) (at <b3de1de343a349299daf7e70e6f0b89b>:0) UnityEditor.UIElements.UxmlSerializedAttributeDescription.SetSerializedValue (System.Object uxmlSerializedData, System.Object value) (at /Users/bokken/build/output/unity/unity/Modules/UIElementsEditor/UXML/UxmlSerializer.cs:400) Unity.UIToolkit.Editor.SetAttributeCommand.Execute () (at /Users/bokken/build/output/unity/unity/Modules/UIToolkitAuthoringEditor/Managed/Commands/SetAttributeCommand.cs:77) Unity.UIToolkit.Editor.CommandSystem.ExecuteCommandAndInvokeHandlers (Unity.UIToolkit.Editor.Command command) (at /Users/bokken/build/output/unity/unity/Modules/UIToolkitAuthoringEditor/Managed/Commands/CommandSystem.cs:282) UnityEngine.Debug:LogException(Exception) Unity.UIToolkit.Editor.CommandSystem:ExecuteCommandAndInvokeHandlers(Command) (at /Users/bokken/build/output/unity/unity/Modules/UIToolkitAuthoringEditor/Managed/Commands/CommandSystem.cs:286) Unity.UIToolkit.Editor.CommandSystem:Execute(Command) (at /Users/bokken/build/output/unity/unity/Modules/UIToolkitAuthoringEditor/Managed/Commands/CommandSystem.cs:186) Unity.UIToolkit.Editor.UICommandQueue:Execute(Command) (at /Users/bokken/build/output/unity/unity/Modules/UIToolkitAuthoringEditor/Managed/Commands/UICommandQueue.cs:65) Unity.UIToolkit.Editor.SetAttributeCommand:Execute(Object, VisualTreeAsset, UxmlAsset, UxmlSerializedData, UxmlSerializedAttributeDescription, Object) (at /Users/bokken/build/output/unity/unity/Modules/UIToolkitAuthoringEditor/Managed/Commands/SetAttributeCommand.cs:37) Unity.UIToolkit.Editor.UxmlAttributeChangeHandler:ProcessChanges() (at /Users/bokken/build/output/unity/unity/Modules/UIToolkitAuthoringEditor/Managed/Inspector/Controls/UxmlAttributeChangeHandler.cs:111) UnityEditor.EditorApplication:Internal_CallDelayFunctions() (at /Users/bokken/build/output/unity/unity/Editor/Mono/EditorApplication.cs:428)
Sign in to see your voted issues