unitycoder / UnityPointCloudViewer

Point Cloud Viewer and Tools for Unity
https://assetstore.unity.com/packages/tools/utilities/point-cloud-viewer-and-tools-16019?aid=1101lGti
131 stars 15 forks source link

build: Failed getting triangles. Submesh topology is lines or points. #113

Closed unitycoder closed 11 months ago

unitycoder commented 3 years ago

meshconverter, 2020.2.7f1

errors in build:

Assertion failed on expression: 'subMesh.topology == kPrimitiveTriangleStrip || subMesh.topology == kPrimitiveQuads' UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Failed getting triangles. Submesh topology is lines or points. UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

cause: if you convert ply with Normals, those gameobjects have Batching static flag set. (which causes those errors in build)

solution: after conversion, select meshes, disable static batching from the dropdown (for all meshes) image

unitycoder commented 11 months ago

didnt happen now, tested 2020.3