Search Issue Tracker
Fixed
Fixed in 6000.0.0b15
Votes
0
Found in
2023.2.7f1
6000.0.0b1
7000.0.0a1
Issue ID
UUM-61923
Regression
No
[UI Builder] Exception thrown when overriding data-source attribute
1) Add the attached script Bug.cs to a new project
2) Open the UI Builder and add the MonoBehaviourBinding element to the canvas.
3) Select the element. Note the errors in the console.
{noformat}
NullReferenceException: Object reference not set to an instance of an object
Unity.UI.Builder.BuilderDataSourceAndPathView.UpdateAttribute (UnityEngine.UIElements.VisualElement target, System.String bindingAttribute) (at C:/Unity/Source/unity-worktree1/Modules/UIBuilder/Editor/Builder/Inspector/Binding/BuilderDataSourceAndPathView.cs:185)
Unity.UI.Builder.BuilderDataSourceAndPathView+<>c__DisplayClass47_0.<OnPropertyFieldBound>b__0 () (at C:/Unity/Source/unity-worktree1/Modules/UIBuilder/Editor/Builder/Inspector/Binding/BuilderDataSourceAndPathView.cs:153)
UnityEngine.UIElements.VisualElement+SimpleScheduledItem.PerformTimerUpdate (UnityEngine.UIElements.TimerState state) (at C:/Unity/Source/unity-worktree1/Modules/UIElements/Core/VisualElementScheduler.cs:321)
UnityEngine.UIElements.TimerEventScheduler.UpdateScheduledEvents () (at C:/Unity/Source/unity-worktree1/Modules/UIElements/Core/Scheduler.cs:363)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.UpdateSchedulers () (at C:/Unity/Source/unity-worktree1/Modules/UIElements/Core/UIElementsUtility.cs:278)
UnityEngine.UIElements.UIEventRegistration.UpdateSchedulers () (at C:/Unity/Source/unity-worktree1/Modules/UIElements/Core/UIElementsUtility.cs:108)
UnityEditor.RetainedMode.UpdateSchedulers () (at C:/Unity/Source/unity-worktree1/Modules/UIElementsEditor/RetainedMode.cs:57)
{noformat}
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Animation Clip with Legacy enabled does not play when Time.timeScale is set to 0 despite Update mode set to "Unscaled time"
- Rename is enabled on subfolder empty space - "Can't rename to empty name" warning
- SamplerState Property Missing Anisotropic Filtering
- Visual glitches when using Handles API
- The RGBA color values are inconsistent when comparing two identical colors set in the Inspector
Add comment