Search Issue Tracker
Fixed in 5.0.0
Fixed in 3.2.5, 4.2.5
Votes
2
Found in [Package]
4.2.2
Issue ID
1245149
Regression
Yes
[2D] NullReferenceException thrown on creating prefab of the "SpriteSkin" component
On creating prefab of the GameObject which has the "SpriteSkin" component added causes the editor to throw NullReferenceException continuously, refer the attached video.
Steps to repro:
1. Create a new project
2. Windows > Package Manager > 2D Animation > Install
3. Hierarchy > right-click > Create Empty
4. Inspector > Add Component > 2D Animation > Sprite Skin > Add
5. Create Prefab of that Object.
Actual Result:
NullReferenceException is thrown when prefab of the Object is created which has "Sprite Skin" component is added
Expected Result:
Prefab of the object created gracefully which has "Sprite Skin" component added
Reproducible in:
2020.2.0a11, 2020.1.0b9, 2020.1.0a13 with Package Version: 4.2.2.
Working fine in:
2020.2.0a11, 2020.1.0b9, 2020.1.0a13 with Package Version: 4.2.1.
Environment:
Windows 10 & macOS 10.14
Stacktrace:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.U2D.Animation.SpriteSkinEditor.OnEnable () (at Library/PackageCache/com.unity.2d.animation@4.2.2/Editor/SpriteSkin/SpriteSkinEditor.cs:60)
-
Gabby234
Oct 29, 2020 22:53
This is pretty interesting. I never thought about doing it this way. I will proceed tomorrow at louisvillemoldremovalservices.com. Thanks
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
- Crash on UnityPlayer!profiling::ProfilerManager::DisposeProfilerRecorder+0xa when Player gets relaunched and exited after running for a long amount of time
- [Input system] When releasing one touch and pressing a second touch during a single frame, the second touch is not translated into UI event line OnPointerDown by the InputSystemUIInputModule
- URP Samples - multiple "Attempting to resolve render surface" and other errors appear when setting Quality pipeline asset
- OnDemandRendering.willCurrentFrameRender returns incorrect values in the Player when UnityEngine.Rendering.OnDemandRendering.renderFrameInterval is greater than 1
- Root motion is not reapplied when transitioning from an animation without root motion to an animation with root motion
Resolution Note (fix version 5.0.0):
Fixed NullReferenceException when creating prefab with SpriteSkin component