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
- Crash on MonoBehaviour::CallMethodIfAvailable when performing various actions
- Incorrect rotations on bones when importing FBX animations with a Humanoid Rig
- Render Graph Viewer “Pass List” section is flickering when resizing vertically and the Render Graph Viewer window is docked
- Render Graph Viewer Capture button plays the click animation but does not do anything when the Capture button is pressed with the “Enter” key on the keyboard
- UI Builder Scrollview is unable to scroll all the way down when the window is downsized vertically
Resolution Note (fix version 10.2.0):
Fixed for 2D Animation 10.2.0