Search Issue Tracker
Won't Fix
Votes
0
Found in
2023.1.0a3
Issue ID
UUM-12020
Regression
Yes
NullReference errors when dragging GameObjects into the Scene View
How to reproduce:
1. Open the attached project “Dragging”
2. Open the “SampleScene” scene
3. Drag the “GameObject” GameObject from Hierarchy into the Scene View
4. Observe the Console
Expected result: There are no errors
Actual result: There are NullReference errors
Reproduced with: 2023.1.0a3_db004e1e516f
Not reproduced with: 2020.3.36f1, 2021.3.6f1, 2022.1.9f1, 2022.2.0b1, 2023.1.0a3_f4fb87d59a7
Reproduced on: Windows 11 Pro
NullReferenceException: Object reference not set to an instance of an object
at UnityEditor.SceneViewMotion+SceneViewViewport.get_IsActive () \[0x00000] in C:\myunityunity\Editor\Mono\SceneView\SceneViewMotion.cs:71
at UnityEditor.SceneViewMotion+SceneViewViewport.get_active () \[0x00000] in C:\myunityunity\Editor\Mono\SceneView\SceneViewMotion.cs:67
at UnityEditor.ShortcutManagement.ContextManager.GetToolContextOfType (System.Type type) \[0x00019] in C:\myunityunity\Modules\ShortcutManagerEditor\ContextManager.cs:175
at UnityEditor.ShortcutManagement.ContextManager.GetContextInstanceOfType (System.Type type) \[0x0006c] in C:\myunityunity\Modules\ShortcutManagerEditor\ContextManager.cs:208
at UnityEditor.ShortcutManagement.ContextManager.HasActiveContextOfType (System.Type type) \[0x00001] in C:\myunityunity\Modules\ShortcutManagerEditor\ContextManager.cs:168
at UnityEditor.ShortcutManagement.Directory.ShortcutEntrySatisfiesContextManager (UnityEditor.ShortcutManagement.IContextManager contextManager, UnityEditor.ShortcutManagement.ShortcutEntry entry) \[0x00001] in C:\myunityunity\Modules\ShortcutManagerEditor\Directory.cs:256
at UnityEditor.ShortcutManagement.Directory.FindPotentialShortcutEntries (UnityEditor.ShortcutManagement.IContextManager contextManager, System.Collections.Generic.List`1\[T] outputShortcuts) \[0x00032] in C:\myunityunity\Modules\ShortcutManagerEditor\Directory.cs:147
at UnityEditor.ShortcutManagement.HelperWindow.UpdateContext () \[0x00017] in C:\myunityunity\Modules\ShortcutManagerEditor\HelperWindow.cs:86
at UnityEditor.HostView.OnFocus () \[0x00013] in C:\myunityunity\Editor\Mono\HostView.cs:306
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- ":focus" style will not be shown when the UI element is unparented and reparented and the "Focus()" method is called without the "Blur()" method being called
- Crash on BucketAllocator::Allocate when importing TextMeshPro assets
- Playmode dropdown creates continuous "Layout update is struggling" errors at certain aspect ratios
- Editor takes a long time to open VFX Graph 'Subgraph' asset when it is heavily referenced by multiple other VFX Graphs
- "Editor Event Handler Error" error is thrown when using Terrain Tool shortcuts
Resolution Note:
.