- Home /
Question by
alexanderameye · Jul 11, 2016 at 03:24 PM ·
erroreditormeshmeshfiltersharedmesh
Mesh memory leak error
hey,
I get this error
Instantiating mesh due to calling MeshFilter.mesh during edit mode. This will leak meshes. Please use MeshFilter.sharedMesh instead.
but when I use sharedMesh, my script's effect gets messed up, is there any workaround?
Comment
I'm using a script that changes a pivot point of an object in edit mode, and it does that :p
Your answer
![](https://koobas.hobune.stream/wayback/20220612084623im_/https://answers.unity.com/themes/thub/images/avi.jpg)