Search Issue Tracker
Fixed in 4.3.0-preview.9
Votes
0
Found in [Package]
preview.8 - 4.3.0, 4.2.3, 4.2.1, 4.1.0, 4.0.2, 3.0.0
Issue ID
1242884
Regression
No
[ProBuilder]ArgumentNullException thrown on selecting Actions from Tools menu with "New Poly Shape" object
ArgumentNullException thrown on selecting "Strip All ProBuilder Scripts in Scene" OR "Strip ProBuilder Script in Selection" Actions from "Tools" menu when "New Poly Shape" GameObject is created in Scene View, 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"
5. Tools > ProBuilder > Actions > Strip All ProBuilder Scripts in Scene OR Strip ProBuilder Script in Selection
Actual Result:
ArgumentNullException thrown on "Strip All ProBuilder Scripts in Scene" action is performed with the "New Poly Shape" GameObject
Expected Result:
"Strip All ProBuilder Scripts in Scene" OR "Strip ProBuilder Script in Selection" actions are performed 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.8 - 4.3.0, 4.2.3, 4.2.1, 4.1.0, 4.0.2, 3.0.0
Environment:
Windows10 and macOS 10.14
Stack trace:
ArgumentNullException: Value cannot be null.
Parameter name: mesh
UnityEngine.ProBuilder.MeshOperations.AppendElements.CreateShapeFromPolygon (UnityEngine.ProBuilder.ProBuilderMesh mesh, System.Collections.Generic.IList`1[T] points, System.Single extrude, System.Boolean flipNormals, System.Collections.Generic.IList`1[T] holePoints) (at Library/PackageCache/com.unity.probuilder@4.3.0-preview.8/Runtime/MeshOperations/AppendElements.cs:380)
UnityEngine.ProBuilder.MeshOperations.AppendElements.CreateShapeFromPolygon (UnityEngine.ProBuilder.ProBuilderMesh mesh, System.Collections.Generic.IList`1[T] points, System.Single extrude, System.Boolean flipNormals) (at Library/PackageCache/com.unity.probuilder@4.3.0-preview.8/Runtime/MeshOperations/AppendElements.cs:244)
UnityEngine.ProBuilder.MeshOperations.AppendElements.CreateShapeFromPolygon (UnityEngine.ProBuilder.PolyShape poly) (at Library/PackageCache/com.unity.probuilder@4.3.0-preview.8/Runtime/MeshOperations/AppendElements.cs:220)
UnityEditor.ProBuilder.PolyShapeEditor.RebuildPolyShapeMesh (System.Boolean vertexCountChanged) (at Library/PackageCache/com.unity.probuilder@4.3.0-preview.8/Editor/EditorCore/PolyShapeEditor.cs:226)
UnityEditor.ProBuilder.PolyShapeEditor.SetPolyEditMode (UnityEngine.ProBuilder.PolyShape+PolyEditMode mode) (at Library/PackageCache/com.unity.probuilder@4.3.0-preview.8/Editor/EditorCore/PolyShapeEditor.cs:212)
UnityEditor.ProBuilder.PolyShapeEditor.OnDisable () (at Library/PackageCache/com.unity.probuilder@4.3.0-preview.8/Editor/EditorCore/PolyShapeEditor.cs:81)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
Add comment