Search Issue Tracker
Fixed in 5.1.0
Votes
0
Found in [Package]
5.0.1
Issue ID
1274776
Regression
No
[2D]NullReferenceException thrown on performing Redo operation after creating Range property in the SpriteShape profiler preset
When a Range property is created in the SpriteShape profiler preset and Undo/Redo operation is performed then Editor throws NullReferenceException, Refer attached video.
Steps to repro:
1. Create a new project with 2D Template
2. Project window > Create > 2D > SpriteShape profiler
3. Reset SpriteShape profiler asset from the Inspector
4. Create a Preset of SpriteShape profiler
5. Project > SpriteShape preset > Inspector > Create Range
6. Edit > Undo Create Range > Undo Selection Change
7. Edit > Redo Selection Change > Redo Create Range
Actual Result:
NullReferenceException is thrown on performing Redo operation when Range is created in the SpriteShape profiler preset earlier
Expected Result:
Redo operation is performed gracefully
Note: "Create Range" button is available from Package Version 5.0.1.
Reproducible in:
2020.2.0b2, 2020.2.0b1 with Package Version 5.0.1.
Environment:
Occurring on Windows 10 & Mac 10.15.
Stack trace:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.Editor.get_referenceTargetIndex () (at <3d7c86b365634083bceadac5c7f36490>:0)
UnityEditor.Editor.get_target () (at <3d7c86b365634083bceadac5c7f36490>:0)
UnityEditor.U2D.SpriteShapeEditor.OnEnable () (at library/packagecache/com.unity.2d.spriteshape@5.0.1/editor/spriteshapeeditor.cs:128)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Shader transparency, discard, and clip are not working when using the Player
- Error is thrown when clicking on warning in the console
- Long IL2CPP build time when project has a .ufbx library wrapper
- Cursor doesn't change to the resizing when using the Rect Tool and the Sprite is too close to the bottom of the Scene View
- InvalidOperationException exception is thrown when Editor Default Text Rendering Mode is set to "Bitmap" and Editor Font is set to "System Font" and an array is expanded in the Inspector Window
Add comment