Search Issue Tracker
Fixed in 5.0.1
Fixed in 4.2.5
Votes
0
Found in [Package]
5.0.0, 4.2.4, 4.2.2
Issue ID
1254873
Regression
Yes
[2D] NullReferenceException is thrown on creating the Preset of the "SpriteSkin" component
On creating Preset of the "SpriteSkin" component editor throw NullReferenceException, refer to 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 Preset Sprite Skin.
6. Project > Sprite Skin Preset >Click
Actual Result:
NullReferenceException is thrown on creating the Preset of the "SpriteSkin" component.
Expected Result:
Preset of the "SpriteSkin" component created gracefully.
Reproducible in:
2020.2.0a15 with Package Version 5.0.0
2020.2.0a14, 2020.1.0b12 with Package Version 4.2.4, 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
Stack Trace:
NullReferenceException: Object reference not set to an instance of an object
UnityEngine.U2D.Animation.SpriteSkinUtility.Validate (UnityEngine.U2D.Animation.SpriteSkin spriteSkin) (at Library/PackageCache/com.unity.2d.animation@5.0.0/Runtime/SpriteSkinUtility.cs:29)
UnityEngine.U2D.Animation.SpriteSkin.get_isValid () (at Library/PackageCache/com.unity.2d.animation@5.0.0/Runtime/SpriteSkin.cs:395)
UnityEngine.U2D.Animation.SpriteSkin.CacheValidFlag () (at Library/PackageCache/com.unity.2d.animation@5.0.0/Runtime/SpriteSkin.cs:150)
UnityEngine.U2D.Animation.SpriteSkin.Reset () (at Library/PackageCache/com.unity.2d.animation@5.0.0/Runtime/SpriteSkin.cs:157)
UnityEditor.Presets.PresetEditor:OnEnable()
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- The Editor becomes unresponsive and memory allocation errors are spammed in the Console when Generating Lightning
- Crash on BatchApplyPropertiesFromSourceAssetDB when opening a specific project
- Scene view Camera cannot be moved with WASD/QE keys when the Right Mouse Button is held down and the Mouse is not moved
- Crash when calling default interface method from virtual method with same name
- [Android] Unity does not include the ".aab" extension for an AppBundle when it is built via script with the buildPlayerOptions.locationPathName = "AppName.apk" and EditorUserBuildSettings.buildAppBundle = true
Add comment