- Home /
Question by
blorg · Jan 07, 2017 at 07:03 AM ·
meshdeformation
Mesh remains deformed in Editor
I am able to deform a mesh during runtime however when i stop the game the mesh remains deformed until i restart unity. is there something i can do to make the mesh return to its original state after stopping the game?
thanks, Alex M
Comment
Answer by villevli · Jan 07, 2017 at 11:53 AM
You should instantiate the mesh when the the game starts with mesh = Instantiate(mesh)
or, if the mesh is in a MeshFilter, you should get the mesh using meshFilter.mesh which will return an instantiated mesh assigned to the MeshFilter.
Converted comment to answer. Please select it as accepted @blorg