Search Issue Tracker
Fixed
Fixed in 10.2.0
Votes
0
Found in [Package]
10.1.4
Issue ID
DANB-828
Regression
No
[2D Animations] NullReferenceException is thrown when URP package exists in project, but Default Render Pipeline is set to a custom pipeline asset
Reproduction steps:
1. Open the attached “IN-94398_Anim2DAssertBugReport.zip” project
2. Click Edit > Project Settings… > Graphics
3. Set “Default Render Pipeline” to “Assets/New Odd Pipeline.asset” pipeline
4. Observe the Console Window
Expected results: No errors are thrown
Actual results: NullReferenceException is thrown because {{UniversalRenderPipeline.asset}} returns null as long as the “Default Render Pipeline” is set to something other than an URP asset
Reproduced with: 10.1.4 (6000.0.36f1, 6000.1.0b6, 6000.2.0a3)
Could not test with: 9.1.3 (2022.3.58f1, there’s no access to URP assets in this version)
Reproduced on: Windows 11 Pro
Not reproduced on: no other environment tested
Notes:
- Full error:
{noformat}NullReferenceException: Object reference not set to an instance of an object
UnityEngine.U2D.Animation.SpriteSkinUtility.IsUsingGpuDeformation () (at ./Library/PackageCache/com.unity.2d.animation@494a3b4e73a9/Runtime/SpriteSkinUtility.cs:51)
UnityEngine.U2D.Animation.DeformationManager.HasToggledGpuDeformation () (at ./Library/PackageCache/com.unity.2d.animation@494a3b4e73a9/Runtime/BatchedDeformation/DeformationManager.cs:134)
UnityEngine.U2D.Animation.DeformationManager.Update () (at ./Library/PackageCache/com.unity.2d.animation@494a3b4e73a9/Runtime/BatchedDeformation/DeformationManager.cs:125)
UnityEngine.U2D.Animation.DeformationManagerUpdater.LateUpdate () (at ./Library/PackageCache/com.unity.2d.animation@494a3b4e73a9/Runtime/BatchedDeformation/DeformationManagerUpdater.cs:25){noformat}
Comments (1)
-
Nephenris
Mar 06, 2025 21:03
Since i migrate to Unity 6 i get this msg. Thousand and thousand of msg in the log !
NullReferenceException: Object reference not set to an instance of an object
UnityEngine.U2D.Animation.SpriteSkinUtility.IsUsingGpuDeformation () (at ./Library/PackageCache/com.unity.2d.animation@494a3b4e73a9/Runtime/SpriteSkinUtility.cs:41)
UnityEngine.U2D.Animation.DeformationManager.HasToggledGpuDeformation () (at ./Library/PackageCache/com.unity.2d.animation@494a3b4e73a9/Runtime/BatchedDeformation/DeformationManager.cs:134)
UnityEngine.U2D.Animation.DeformationManager.Update () (at ./Library/PackageCache/com.unity.2d.animation@494a3b4e73a9/Runtime/BatchedDeformation/DeformationManager.cs:125)
UnityEngine.U2D.Animation.DeformationManagerUpdater.LateUpdate () (at ./Library/PackageCache/com.unity.2d.animation@494a3b4e73a9/Runtime/BatchedDeformation/DeformationManagerUpdater.cs:25)I do not know how to fix it
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
- Required SpriteMask class (ID 331) is stripped when "Strip Engine Code" is enabled
- “Maximized serialized file backup not found” error is thrown when minimizing a window in a newly opened project
- Build stack trace contains invalid lines when building with IL2CPP using scripts with delegates containing generic types in the signature
- Entities Systems window has a “Show Full Player Loop” dropdown which does nothing when clicked after enabling “Show Full Player Loop”
- Entities Hierarchy Search “Show/Hide” button’s Lens Icon is blurry when the Editor is on an external monitor
Resolution Note (fix version 10.2.0):
Fixed for 2D Animation 10.2.0