Copyright © 2026 Unity Technologies
Scene window stuck in orbit after context menu click from Hierarchy
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
Issues you vote on will appear here