Search Issue Tracker
Fixed in 3.0.5
Votes
0
Found in [Package]
preview.2-2.1.0
Issue ID
1159767
Regression
No
[2D] [Sprite Shape] Error generated when using a default sprite for Corner sprite or Angle Range sprite in Sprite Shape Profile
[2D] [Sprite Shape] Error generated when using a default sprite for Corner sprite or Angle Range sprite in Sprite Shape Profile
Steps to Repro:
1. install Sprite Shape package
2. create a new Sprite Shape Profile
3. In either Corners or add an Angle Range sprite- select a default sprite (e.g. UISprite)
4. Observe error messages are generated in the console.
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.U2D.SpriteShapeEditor.OnInspectorGUI () (at Library/PackageCache/com.unity.2d.spriteshape@2.1.0-preview.4/Editor/SpriteShapeEditor.cs:295)
UnityEditor.UIElements.InspectorElement+<CreateIMGUIInspectorFromEditor>c__AnonStorey1.<>m__0 () (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorElement.cs:479)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
5. If using an Angle Range, observe the default sprite cannot be unselected and the asset must be deleted to resolve errors
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Blank, Light-Themed "Create Node" window becomes visible on the next project open
- UI Elements/Layout inconsistencies in the Particle System component
- The Game view and Scene view fail to render when launching the Editor with a maximized Render Graph Viewer window
- "List is empty" is poorly visible in the "Create Node" window
- [Android] GameObject with a custom shader becomes invisible when deployed with the Vulkan Graphics API
Add comment