Search Issue Tracker
Fixed in 4.3.0-preview.9
Votes
0
Found in [Package]
4.3.0-preview.7, 4.2.3, 4.2.1, 4.1.0, 4.0.2, 3.0.0
Issue ID
1242945
Regression
No
[ProBuilder] ArgumentOutOfRangeException thrown on selecting "Freeze Transform" tool with Poly Shape GameObject
On Selecting "Freeze Transform" tool when "Strip ProBuilder Scripts in Selection" from Actions under Tools menu is performed with "New Poly Shape" GameObject causes the editor to throw ArgumentOutOfRangeException, refer attached video.
Steps to repro:
1. Create a new project.
2. Window > Package Manager > ProBuilder > Install
3. Tools > ProBuilder > ProBuilder Window
4. Create a "New Poly Shape" and select "Object Selection"
5. Tools > ProBuilder > Actions > Strip ProBuilder Scripts in Selection
6. Select "Freeze Transform" tool from ProBuilde Window
Actual Result:
ArgumentOutOfRangeException thrown when "Freeze Transform" tool is selected with the "New Poly Shape" GameObject
Expected Result:
"Freeze Transform" tool is selected gracefully
Occurring on:
2020.2.0a9, 2020.1.0b7, 2019.3.12f1, 2019.2.13f1, 2019.1.11f1, 2018.4.14f1
Package found version: preview.7 - 4.3.0, 4.2.3, 4.2.1, 4.1.0, 4.0.2, 3.0.0
Environment:
Windows10 and macOS 10.14
ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) (at <fb001e01371b4adca20013e0ac763896>:0)
System.ThrowHelper.ThrowArgumentOutOfRangeException () (at <fb001e01371b4adca20013e0ac763896>:0)
UnityEditor.ProBuilder.UndoUtility.RecordMeshAndTransformSelection (System.String message) (at Library/PackageCache/com.unity.probuilder@4.3.0-preview.8/Editor/EditorCore/UndoUtility.cs:74)
UnityEditor.ProBuilder.Actions.FreezeTransform.DoAction () (at Library/PackageCache/com.unity.probuilder@4.3.0-preview.8/Editor/MenuActions/Object/FreezeTransform.cs:43)
UnityEditor.ProBuilder.MenuAction.DoButton (System.Boolean isHorizontal, System.Boolean showOptions, UnityEngine.Rect& optionsRect, UnityEngine.GUILayoutOption[] layoutOptions) (at Library/PackageCache/com.unity.probuilder@4.3.0-preview.8/Editor/EditorCore/MenuAction.cs:337)
UnityEditor.ProBuilder.EditorToolbar.OnGUI () (at Library/PackageCache/com.unity.probuilder@4.3.0-preview.8/Editor/EditorCore/EditorToolbar.cs:370)
UnityEditor.ProBuilder.ProBuilderEditor.OnGUI () (at Library/PackageCache/com.unity.probuilder@4.3.0-preview.8/Editor/EditorCore/ProBuilderEditor.cs:469)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition, UnityEngine.Rect viewRect) (at <599a88f0dc984e9a84071cb802b80734>:0)
UnityEditor.DockArea.DrawView (UnityEngine.Rect viewRect, UnityEngine.Rect dockAreaRect) (at <599a88f0dc984e9a84071cb802b80734>:0)
UnityEditor.DockArea.OldOnGUI () (at <599a88f0dc984e9a84071cb802b80734>: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 <a22359d5f5034fbc857d5b4e837e47f0>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <a22359d5f5034fbc857d5b4e837e47f0>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <a22359d5f5034fbc857d5b4e837e47f0>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Boolean canAffectFocus) (at <a22359d5f5034fbc857d5b4e837e47f0>:0)
UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at <a22359d5f5034fbc857d5b4e837e47f0>:0)
UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUI (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at <a22359d5f5034fbc857d5b4e837e47f0>:0)
UnityEngine.UIElements.IMGUIContainer.HandleEvent (UnityEngine.UIElements.EventBase evt) (at <a22359d5f5034fbc857d5b4e837e47f0>:0)
UnityEngine.UIElements.CallbackEventHandler.HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase evt) (at <a22359d5f5034fbc857d5b4e837e47f0>:0)
UnityEngine.UIElements.MouseCaptureDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <a22359d5f5034fbc857d5b4e837e47f0>:0)
UnityEngine.UIElements.EventDispatcher.ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, System.Boolean imguiEventIsInitiallyUsed) (at <a22359d5f5034fbc857d5b4e837e47f0>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <a22359d5f5034fbc857d5b4e837e47f0>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at <a22359d5f5034fbc857d5b4e837e47f0>:0)
UnityEngine.UIElements.EventDispatcher.OpenGate () (at <a22359d5f5034fbc857d5b4e837e47f0>:0)
UnityEngine.UIElements.EventDispatcherGate.Dispose () (at <a22359d5f5034fbc857d5b4e837e47f0>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <a22359d5f5034fbc857d5b4e837e47f0>:0)
UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at <a22359d5f5034fbc857d5b4e837e47f0>:0)
UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at <a22359d5f5034fbc857d5b4e837e47f0>:0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <a22359d5f5034fbc857d5b4e837e47f0>:0)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <a22359d5f5034fbc857d5b4e837e47f0>:0)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <a22359d5f5034fbc857d5b4e837e47f0>:0)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <a22359d5f5034fbc857d5b4e837e47f0>:0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <5ef95cf9017f426f8b888bbcd7fe1bcc>:0)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- The Scrollbar becomes unusable when adding Elements to the List
- "One or more data file missing for baking set NewScene Baking Set. Cannot load shared data." error in Player when a specific project is built
- Choosing new HDR Colour using RGB values breaks colour on Intensity Selectors
- Rendering/Decal Layer Mask options are different inside Prefab Mode and outside Prefab Mode when the project is upgraded to Unity 6
- Incorrect Realtime GI Light Probes baking when more than one Light Probe Group is used and "Baked Global Illumination" is enabled
Add comment