Search Issue Tracker
Won't Fix
Won't Fix in 2023.1.X
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
- Economy package throws a CS0619 error in the Console when installed together with Deployment package
- “Screen position out of view frustum” errors are thrown when zooming out in the Scene view with Rect Tool selected
- Only one [UnityOneTimeSetUp] method runs when there are 2 of them in different classes
- Crash with multiple stack traces when Sprites with a high resolution get Sliced to a Grid with a small cell size in the Sprite Editor
- The UI Builder's Data Source Object picker cannot be navigated after triggering a circular dependency dialog box
Resolution Note:
.
Resolution Note (2023.1.X):
.