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
- Channel remapping dropdown in the Terrain Layer does not open when clicked on the title
- The Editor freezes indefinitely when a large number of elements are entered in the Subgraphs or Categories lists
- Some Visual Effects package Assets links to documentation are not working
- Heatmap asset’s documentation button in the Inspector window leads to “Sorry... that page seems to be missing!” page when clicked
- Crash on MonoBehaviour::CallMethodIfAvailable when performing various actions
Add comment