Search Issue Tracker
Fixed in 4.3.0 - preview 8
Votes
0
Found in [Package]
4.3.0-preview.7, 4.2.3, 4.2.1, 4.0.2
Issue ID
1238115
Regression
Yes
[ProBuilder] Exception thrown on selecting UV 2 mode with "Lock the SceneView handle tools" is enabled in the UV Editor
When "Lock the SceneView handle tools to UV manipulation mode" is enabled and UV 2(read-only) mode is selected in the UV Editor window causes editor to throw InvalidOperationException, refer attached video.
Steps to repro:
1. Create a new project.
2. Window > Package Manager > ProBuilder > Install
3. Tools > ProBuilder > ProBuilder Window
4. Shape Tools > Cube > Build and select face tool in the Scene View
5. Open UV Editor window
6. Enable "Lock the SceneView handle tools to UV manipulation mode"
7. Select UV 2 (read-only) mode from UV dropdown
Actual Result:
InvalidOperationException thrown on selecting UV2 mode when "Lock the SceneView handle tools to UV manipulation mode" is enabled
Expected Result:
UV2 mode is selected without throwing any error in the console
Reproducible on:
2020.2.0a7, 2020.1.0b5, 2019.3.10f1, 2019.2.13f1, 2019.2.0a11 with Package version: 4.3.0-preview.7, 4.2.3, 4.2.1, 4.1.0, 4.0.2
Working Fine in
2019.2.0a10, 2019.1.11f1, 2018.4.14f1 with package version: 3.10.1, 3.0.8, 3.0.0
Environment:
Windows 10 & macOS 10.14
Stack trace:
InvalidOperationException: Sequence contains no elements
System.Linq.Enumerable.First[TSource] (System.Collections.Generic.IEnumerable`1[T] source) (at <351e49e2a5bf4fd6beabb458ce2255f3>:0)
UnityEngine.ProBuilder.Bounds2D.Center (System.Collections.Generic.IList`1[T] points, System.Collections.Generic.IEnumerable`1[T] indexes) (at Library/PackageCache/com.unity.probuilder@4.3.0-preview.7/Runtime/Core/Bounds2D.cs:392)
UnityEditor.ProBuilder.TextureTool+MeshAndTextures..ctor (UnityEngine.ProBuilder.ProBuilderMesh mesh, UnityEngine.ProBuilder.PivotPoint pivot) (at Library/PackageCache/com.unity.probuilder@4.3.0-preview.7/Editor/EditorCore/TextureTool.cs:65)
UnityEditor.ProBuilder.TextureMoveTool+TranslateTextureSelection..ctor (UnityEngine.ProBuilder.ProBuilderMesh mesh, UnityEngine.ProBuilder.PivotPoint pivot) (at Library/PackageCache/com.unity.probuilder@4.3.0-preview.7/Editor/EditorCore/TextureMoveTool.cs:25)
UnityEditor.ProBuilder.TextureMoveTool.GetElementSelection (UnityEngine.ProBuilder.ProBuilderMesh mesh, UnityEngine.ProBuilder.PivotPoint pivot) (at Library/PackageCache/com.unity.probuilder@4.3.0-preview.7/Editor/EditorCore/TextureMoveTool.cs:37)
UnityEditor.ProBuilder.MeshSelection.RecalculateSelectedElementGroups () (at Library/PackageCache/com.unity.probuilder@4.3.0-preview.7/Editor/EditorCore/MeshSelection.cs:260)
UnityEditor.ProBuilder.MeshSelection.get_elementSelection () (at Library/PackageCache/com.unity.probuilder@4.3.0-preview.7/Editor/EditorCore/MeshSelection.cs:102)
UnityEditor.ProBuilder.MeshSelection.GetActiveSelectionGroup () (at Library/PackageCache/com.unity.probuilder@4.3.0-preview.7/Editor/EditorCore/MeshSelection.cs:577)
UnityEditor.ProBuilder.MeshSelection.GetHandlePosition () (at Library/PackageCache/com.unity.probuilder@4.3.0-preview.7/Editor/EditorCore/MeshSelection.cs:534)
UnityEditor.ProBuilder.VertexManipulationTool.OnSceneGUI (UnityEngine.Event evt) (at Library/PackageCache/com.unity.probuilder@4.3.0-preview.7/Editor/EditorCore/VertexManipulationTool.cs:263)
UnityEditor.ProBuilder.ProBuilderEditor.OnSceneGUI (UnityEditor.SceneView sceneView) (at Library/PackageCache/com.unity.probuilder@4.3.0-preview.7/Editor/EditorCore/ProBuilderEditor.cs:682)
UnityEditor.SceneView.CallOnSceneGUI () (at <b0707acaff7743ddbcba0f9c9b5c49cc>:0)
UnityEditor.SceneView.HandleSelectionAndOnSceneGUI () (at <b0707acaff7743ddbcba0f9c9b5c49cc>:0)
UnityEditor.SceneView.OnGUI () (at <b0707acaff7743ddbcba0f9c9b5c49cc>:0)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition, UnityEngine.Rect viewRect) (at <b0707acaff7743ddbcba0f9c9b5c49cc>:0)
UnityEditor.DockArea.DrawView (UnityEngine.Rect viewRect, UnityEngine.Rect dockAreaRect) (at <b0707acaff7743ddbcba0f9c9b5c49cc>:0)
UnityEditor.DockArea.OldOnGUI () (at <b0707acaff7743ddbcba0f9c9b5c49cc>: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 <bbbb88ae80ab4089bd1e62021a527f21>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "Radio Button" disappears when added under the "RadioButtonGroup" and the parent Visual Element is selected
- ScrollView Scrollbar is jittering when Movement Type "Elastic" is selected and a mouse with a freewheel is used
- [WebGL]"TypeError: Cannot read properties of undefined (reading 'length')" error is thrown when starting the Player when config.autoSyncPersistentDataPath is set to true
- [UaaL] Freeze on "GetLightingSettingsOrDefaultsFallback()" when rotating device screen after unloading Unity framework
- A white vertical artifact is present when any Material from HDRI is used for a panoramic skybox
Add comment