We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e1decd commit 9f50ef1Copy full SHA for 9f50ef1
Assets/HoloToolkit/SpatialUnderstanding/Scripts/SpatialUnderstandingCustomMesh.cs
@@ -123,6 +123,7 @@ public void Commit()
123
MeshObject.SetTriangles(tris, 0);
124
MeshObject.RecalculateNormals();
125
MeshObject.RecalculateBounds();
126
+ // The null assignment is required by Unity in order to pick up the new mesh
127
SpatialCollider.sharedMesh = null;
128
SpatialCollider.sharedMesh = MeshObject;
129
}
0 commit comments