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
- Console shows Exception: {"error":"not found","detail":["not found"]} after opening Build History window
- [HDRP] Volumetric cloud shadows disappear when there is no directional light shadows
- “Selector” column names in the Search window are lowercase when added
- Install List Project Counter Panel can be right clicked through and Install Context Menu can be opened disabling Project Counter Panel's buttons
- [MacOS] Scene is marked/flickering as dirty (with asterisk) when dragging a Material on a GameObject in Scene view
Resolution Note (fix version 10.2.0):
Fixed for 2D Animation 10.2.0