Search Issue Tracker
Fixed in 5.1.0
Fixed in 5.1.0
Votes
2
Found in [Package]
5.0.1
Issue ID
1280016
Regression
Yes
[2D][SpriteShape] Unable to create Sprite Shape Profile along with ArgumentNullException thrown in the Project window
On creating Sprite Shape Profile in the project window causes editor to throw ArgumentNullException, also Sprite Shape Profile doesn't create.
Unable to create 2D Sprite (Square, Circle, Capsule), Refer attached video.
Steps to repro:
1. Create a new Project
2. Project window > Create > 2D > Sprite Shape Profile
Actual Result:
ArgumentNullException is thrown on creating Sprite Shape Profile in the Project window
Expected Result:
Sprite Shape Profile is created gracefully
Reproducible in:
2020.2.0b4, 2020.2.0b3 with package version 5.0.1
Working fine in
2020.2.0b2, 2020.1.6f1 with package version 5.0.1, 4.1.3
Environment:
Occurring on Windows 10 & macOS 10.15.
ArgumentNullException: Value cannot be null.
Parameter name: asset
UnityEditor.U2D.SpriteShape.AssetCreation+CreateAssetEndNameEditAction.Action (System.Int32 instanceId, System.String pathName, System.String resourceFile) (at Library/PackageCache/com.unity.2d.spriteshape@5.0.1/Editor/ObjectMenuCreation/AssetCreation.cs:78)
UnityEditor.ProjectWindowUtil.EndNameEditAction (UnityEditor.ProjectWindowCallback.EndNameEditAction action, System.Int32 instanceId, System.String pathName, System.String resourceFile, System.Boolean accepted) (at <619203950cee4f0c816226cdecf9c635>:0)
UnityEditor.CreateAssetUtility.EndNewAssetCreation (System.String name) (at <619203950cee4f0c816226cdecf9c635>:0)
UnityEditor.AssetsTreeViewGUI.RenameEnded () (at <619203950cee4f0c816226cdecf9c635>:0)
UnityEditor.IMGUI.Controls.TreeViewGUI.EndRename () (at <619203950cee4f0c816226cdecf9c635>:0)
UnityEditor.IMGUI.Controls.TreeViewGUI.DoRenameOverlay () (at <619203950cee4f0c816226cdecf9c635>:0)
UnityEditor.IMGUI.Controls.TreeViewGUI.BeginRowGUI () (at <619203950cee4f0c816226cdecf9c635>:0)
UnityEditor.AssetsTreeViewGUI.BeginRowGUI () (at <619203950cee4f0c816226cdecf9c635>:0)
UnityEditor.IMGUI.Controls.TreeViewController.OnGUI (UnityEngine.Rect rect, System.Int32 keyboardControlID) (at <619203950cee4f0c816226cdecf9c635>:0)
UnityEditor.ProjectBrowser.OnGUI () (at <619203950cee4f0c816226cdecf9c635>:0)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition, UnityEngine.Rect viewRect) (at <619203950cee4f0c816226cdecf9c635>:0)
UnityEditor.DockArea.DrawView (UnityEngine.Rect viewRect, UnityEngine.Rect dockAreaRect) (at <619203950cee4f0c816226cdecf9c635>:0)
UnityEditor.DockArea.OldOnGUI () (at <619203950cee4f0c816226cdecf9c635>:0)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <25b3b10f7ceb493e97ab16f983c3ca81>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <25b3b10f7ceb493e97ab16f983c3ca81>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <25b3b10f7ceb493e97ab16f983c3ca81>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Boolean canAffectFocus) (at <25b3b10f7ceb493e97ab16f983c3ca81>:0)
UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at <25b3b10f7ceb493e97ab16f983c3ca81>:0)
UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUI (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at <25b3b10f7ceb493e97ab16f983c3ca81>:0)
UnityEngine.UIElements.IMGUIContainer.HandleEvent (UnityEngine.UIElements.EventBase evt) (at <25b3b10f7ceb493e97ab16f983c3ca81>:0)
UnityEngine.UIElements.EventDispatchUtilities.PropagateEvent (UnityEngine.UIElements.EventBase evt) (at <25b3b10f7ceb493e97ab16f983c3ca81>:0)
UnityEngine.UIElements.MouseEventDispatchingStrategy.SendEventToRegularTarget (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel) (at <25b3b10f7ceb493e97ab16f983c3ca81>:0)
UnityEngine.UIElements.MouseEventDispatchingStrategy.SendEventToTarget (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel) (at <25b3b10f7ceb493e97ab16f983c3ca81>:0)
UnityEngine.UIElements.MouseEventDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel iPanel) (at <25b3b10f7ceb493e97ab16f983c3ca81>:0)
UnityEngine.UIElements.EventDispatcher.ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, System.Boolean imguiEventIsInitiallyUsed) (at <25b3b10f7ceb493e97ab16f983c3ca81>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <25b3b10f7ceb493e97ab16f983c3ca81>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at <25b3b10f7ceb493e97ab16f983c3ca81>:0)
UnityEngine.UIElements.EventDispatcher.OpenGate () (at <25b3b10f7ceb493e97ab16f983c3ca81>:0)
UnityEngine.UIElements.EventDispatcherGate.Dispose () (at <25b3b10f7ceb493e97ab16f983c3ca81>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <25b3b10f7ceb493e97ab16f983c3ca81>:0)
UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at <25b3b10f7ceb493e97ab16f983c3ca81>:0)
UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at <25b3b10f7ceb493e97ab16f983c3ca81>:0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <25b3b10f7ceb493e97ab16f983c3ca81>:0)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <25b3b10f7ceb493e97ab16f983c3ca81>:0)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <25b3b10f7ceb493e97ab16f983c3ca81>:0)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <25b3b10f7ceb493e97ab16f983c3ca81>:0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <931b26b61f444e3485195721b0227b20>:0)
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 5.1.0):
Fixed by Package version: 2D SpriteShape 5.1.0
Resolution Note (fix version 5.1.0):
Fixed by Package:
2D Sprite Shape 5.1.0