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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
Resolution Note (fix version 10.2.0):
Fixed for 2D Animation 10.2.0