Search Issue Tracker
Won't Fix
Votes
0
Found in
2019.3
2019.3.4f1
2020.2
Issue ID
1239839
Regression
No
NullReferenceException on Undo.PerformUndo
How to reproduce:
1. Open the attached Perform Undo NullRef.zip project
2. Go to Project window/Scenes/ open Sample Scene
3. Go to the Scene view and make sure Scene View tab is focused on by mouse
4. Press U button on the keyboard
Actual: NullReferenceException is thrown in the console window when performing Undo.PerformUndo
Reproducible with: 2019.3, 2020.2
Note: Could not test with earlier versions because of the thrown errors
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
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
Resolution Note:
It is safer to add a callback to beforeSceneGui instead of duringSceneGui when wanting to use undo actions.
When using duringSceneGui the user can end up reversing some of the handle and tool set up unintentionally.