diff --git a/unity/Runtime/Components/Shapes/MjMeshFilter.cs b/unity/Runtime/Components/Shapes/MjMeshFilter.cs index f97902fa..c91f7a87 100644 --- a/unity/Runtime/Components/Shapes/MjMeshFilter.cs +++ b/unity/Runtime/Components/Shapes/MjMeshFilter.cs @@ -32,6 +32,7 @@ public class MjMeshFilter : MonoBehaviour { _geom = GetComponent(); _shapeChangeStamp = new Vector4(0, 0, 0, -1); _meshFilter = GetComponent(); + _meshFilter.mesh = new Mesh(); } protected void Update() {