Steps to reproduce:
1. Create a new project
2. Import the “IN-148077.svg” asset
3. Select the imported svg in the Project window
4. In the Inspector, navigate to “Generated Asset Type” and change its type to “Textured Sprite”
5. Set the “Pivot” type to “Custom”
6. Change the “Custom Pivot” values to anything, just so changes are recognized
7. Press “Apply”
8. Open the SVG in the Sprite Editor
9. Change the “Custom Pivot” values to anything, just so changes are recognized
10. Press “Apply”
11. Observe the SVG’s Sprite asset and the Console window
Actual result: SVG Custom pivot is not applied to its sprite asset and a “NullReferenceException” error gets thrown in the console
Expected result: SVG Custom pivot is not applied to its sprite asset and no error is thrown
Reproducible with: 3.0.0-preview.2 (6000.3.21f1), 3.0.0-preview.7 (6000.3.21f1)
Not reproducible with: 2.0.0-preview.25 (6000.0.81f1)
Reproducible on: macOS Sequoia 15.7.7 (M1 Max)
Not reproducible on: No other environments tested
Workaround:
Copy the package into your project, update “SVGSpriteProviders.cs” to use the current serialized property paths, and sync “m_CustomPivot/m_Alignment” with “m_SpriteData.SpritePivot/SpriteAlignment”. (User reported)
Note: When first editing the custom pivot in the importer settings it works as intended, after reproducing the issue you can’t edit it through the importer anymore either