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
- Memory leak when a lot of UI elements are spawned and despawned
- Warnings are not logged in the Console window when using external code analyzers
- Errors “TLS Allocator ALLOC_TEMP_TLS, underlying allocator ALLOC_TEMP_MAIN has unfreed allocations, size 288“ appear constantly when Prefab is open
- Crash on PPtr<Shader>::operator or NullException errors spammed in console when calling Dispose() on null GraphicsBuffer with baked Reflection Probes
- “EndRenderPass: Not inside a Renderpass” and other Render Graph errors in the Player when Render Graph is enabled and Overlay UI is used
Add comment